REST API - List Users Request
9 min
/api/v1/users?offset={offset}\&limit={limit} description retrieves all users in this blueprint instance url structure \[blueprint uri]/api/v1/users supported methods head docid\ eqnd3zptd6dwf3go3ufox get docid 7hm2r py7e84xk2msf11b request uri parameters offset (optional) defines the paging offset (that is, index) at which the results start offset the default is 0 limit (optional) defines the number of items (projects, artifacts, etc) to retrieve per query this parameter can be set to an integer the default is 100 the minimum value is 1 and the maximum value is 500 http status codes 200 ok 201 successfully created 206 partial content 400 bad request this error can occur for a variety of reasons at least one uri or request body parameter is invalid, such as one of the filter docid\ sv9gjverxczcgqdn28j7u , traces, offset or limit parameters a required value has not been provided if you are submitting a post docid\ hsi lzxs8g rx ydudzkg or patch docid\ rcjvhrlby6de zgkehxui request and have not added the x http method override parameter to your request header 401 unauthorized the blueprint token is missing, invalid or expired 403 forbidden the applicable permissions are needed for example, this error can occur when an author or collaborate license is needed for access comment permissions are needed on the artifact edit permissions are needed on the change summary job 404 notfound item is not found in the project for example, this error can occur when artifact not found artifact type not found project not found alm target not found change summary job not found user does not have edit permissions for this artifact, project or alm target 409 conflict reason for failure can be found in the response body additional information may also be found in the log 411 length required if the content length header is missing in the request 413 request entity too large if the provided file size is larger than allowed 415 unsupported media type if the provided media type is not of mime multipart content "form data " 416 request range not satisfiable if offset points to a part of a collection that is not available 500 internal server error 501 not implemented examples xml examples request uri https //production blueprintcloud com/api/v1/users?limit=3\&offset=13 response header {'content length' '955', 'expires' ' 1', 'server' 'blueprint', 'content range' 'users 13 15/122', 'pragma' 'no cache', 'cache control' 'no cache', 'date' 'sat, 04 may 2013 14 59 21 gmt', 'content type' 'application/xml; charset=utf 8'} response body \<?xml version="1 0" ?>\<users xmlns="http //www blueprintsys com/blueprint/api/v1" xmlns\ i="http //www w3 org/2001/xmlschema instance"> \<user> \<displayname>steph hubert\</displayname> \<firstname>steph\</firstname> \<groups> \<group> \<id>19\</id> \<name>dept product management\</name> \</group> \<group> \<id>20\</id> \<name>release note collaborators\</name> \</group> \<group> \<id>34\</id> \<name>bp gold group\</name> \</group> \</groups> \<id>15\</id> \<lastname>hubert\</lastname> \<name>blueprint\shubert\</name> \</user> \<user> \<displayname>matt dodgson\</displayname> \<firstname>matthew\</firstname> \<groups> \<group> \<id>7\</id> \<name>feature team integration\</name> \</group> \<group> \<id>19\</id> \<name>dept product management\</name> \</group> \<group> \<id>34\</id> \<name>bp gold group\</name> \</group> \</groups> \<id>16\</id> \<lastname>dodgson\</lastname> \<name>blueprint\mdodgson\</name> \</user> \<user> \<displayname>ari test\</displayname> \<firstname>ari\</firstname> \<groups/> \<id>17\</id> \<lastname>test\</lastname> \<name>aritest\</name> \</user>\</users> json example request uri https //production blueprintcloud com/api/v1/users?limit=3\&offset=13 response header {'content length' '822', 'expires' ' 1', 'server' 'blueprint', 'content range' 'users 13 15/122', 'pragma' 'no cache', 'cache control' 'no cache', 'date' 'sat, 04 may 2013 11 59 23 gmt', 'content type' 'application/json; charset=utf 8'} response body \[ { "displayname" "steph hubert", "name" "blueprint\\\shubert", "firstname" "steph", "lastname" "hubert", "groups" \[ { "projectid" null, "type" "group", "id" 19, "name" "dept product management" }, { "projectid" null, "type" "group", "id" 20, "name" "release note collaborators" }, { "projectid" null, "type" "group", "id" 34, "name" "bp gold group" } ], "type" "user", "id" 15 }, { "displayname" "matt dodgson", "name" "blueprint\\\mdodgson", "firstname" "matthew", "lastname" "dodgson", "groups" \[ { "projectid" null, "type" "group", "id" 7, "name" "feature team integration" }, { "projectid" null, "type" "group", "id" 19, "name" "dept product management" }, { "projectid" null, "type" "group", "id" 34, "name" "bp gold group" } ], "type" "user", "id" 16 }, { "displayname" "ari test", "name" "aritest", "firstname" "ari", "lastname" "test", "groups" \[], "type" "user", "id" 17 }]