Returns a User resource based on ID.

GET {{baseUrl}}/Users/:userId?attributes=<string>&excludedAttributes=<string>&lookupByName=<boolean>

The User resource with matching ID is returned. Attributes to include in the response can be specified with the 'attributes' query parameter. Attributes to exclude from the response can be specified with the 'excludedAttributes' query parameter. The core schema is urn:ietf:params:scim:schemas:core:2.0:User. There are fields marked as 'returned only by request' that are a part of the secondary schema urn:ietf:params:scim:schemas:sailpoint:1.0:User. In order to see any of those fields returned, you must provide those attributes in the 'attributes' query parameter.

Request Params

KeyDatatypeRequiredDescription
attributesstringThe User attributes to include in the response. The query parameter value is a comma-separated list of fields to be returned in the response for each User.<br/><br/>Example: attributes=name,userName<br/><br/> The attributes provided will be the only ones returned in the response, with the exception of id, schemas, and meta, which are always returned for a User.
excludedAttributesstringThe User attributes to exclude from the response. The query parameter value is a comma-separated list of fields to be excluded from the response for each User.<br/><br/>Example: excludedAttributes=name,userName<br/><br/> The attributes provided will be the only ones excluded from the response, with the exception of id, schemas, and meta, which are always returned for a User.
lookupByNamestringA boolean value that determines if the User resource will be looked up by userName instead of userId (value in path parameter 'userId'). Setting this query parameter to true will cause the value pulled from the 'userId' path parameter to be treated as a userName when searching for the resource.<br/><br/>Example: scim/v2/Users/Mock.User?lookupByName=true

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;id&quot;:&quot;c0b4568a4fe7458c434ee77d1fbt156b&quot;,&quot;userName&quot;:&quot;Mock.User&quot;,&quot;name&quot;:{&quot;formatted&quot;:&quot;Ms. Barbara J Jensen, III&quot;,&quot;familyName&quot;:&quot;Jensen&quot;,&quot;givenName&quot;:&quot;Barbara&quot;},&quot;displayName&quot;:&quot;Barbara Jensen&quot;,&quot;userType&quot;:&quot;employee&quot;,&quot;active&quot;:true,&quot;emails&quot;:[{&quot;type&quot;:&quot;work&quot;,&quot;value&quot;:&quot;Barbara.Jensen@example.com&quot;,&quot;primary&quot;:true},{&quot;type&quot;:&quot;work&quot;,&quot;value&quot;:&quot;Barbara.Jensen@example.com&quot;,&quot;primary&quot;:true}],&quot;urn:ietf:params:scim:schemas:sailpoint:1.0:User&quot;:{&quot;accounts&quot;:[{&quot;displayName&quot;:&quot;Bob.Smith&quot;,&quot;value&quot;:&quot;c0a7778b7ef71e79817ee74e6a1f0444&quot;,&quot;$ref&quot;:&quot;http://localhost:8080/iiq/scim/v2/Accounts/c0a7778b7ef71e79817ee74e6a1f0444&quot;},{&quot;displayName&quot;:&quot;Bob.Smith&quot;,&quot;value&quot;:&quot;c0a7778b7ef71e79817ee74e6a1f0444&quot;,&quot;$ref&quot;:&quot;http://localhost:8080/iiq/scim/v2/Accounts/c0a7778b7ef71e79817ee74e6a1f0444&quot;}],&quot;entitlements&quot;:[{&quot;value&quot;:&quot;groupmbr&quot;,&quot;display&quot;:&quot;HelpDesk&quot;,&quot;type&quot;:&quot;Permission&quot;,&quot;application&quot;:&quot;ADMockApp&quot;,&quot;accountName&quot;:&quot;CN=Barbara Jensen,OU=Taipei,OU=Asia-Pacific,DC=example,DC=com&quot;,&quot;$ref&quot;:&quot;http://localhost:8080/iiq/scim/v2/Entitlements/c0a7777a7f74744d817e74fc12362c67&quot;},{&quot;value&quot;:&quot;groupmbr&quot;,&quot;display&quot;:&quot;HelpDesk&quot;,&quot;type&quot;:&quot;Permission&quot;,&quot;application&quot;:&quot;ADMockApp&quot;,&quot;accountName&quot;:&quot;CN=Barbara Jensen,OU=Taipei,OU=Asia-Pacific,DC=example,DC=com&quot;,&quot;$ref&quot;:&quot;http://localhost:8080/iiq/scim/v2/Entitlements/c0a7777a7f74744d817e74fc12362c67&quot;}],&quot;roles&quot;:[{&quot;value&quot;:&quot;detectedRoles&quot;,&quot;display&quot;:&quot;User - IT&quot;,&quot;type&quot;:&quot;it&quot;,&quot;acquired&quot;:&quot;Assigned&quot;,&quot;application&quot;:&quot;Active_Directory&quot;,&quot;accountName&quot;:&quot;CN=Barbara Jensen,OU=Taipei,OU=Asia-Pacific,DC=example,DC=com&quot;,&quot;$ref&quot;:&quot;http://localhost:8080/iiq/scim/v2/Roles/c0a7777a7f74744d817e74fc12362c67&quot;},{&quot;value&quot;:&quot;detectedRoles&quot;,&quot;display&quot;:&quot;User - IT&quot;,&quot;type&quot;:&quot;it&quot;,&quot;acquired&quot;:&quot;Assigned&quot;,&quot;application&quot;:&quot;Active_Directory&quot;,&quot;accountName&quot;:&quot;CN=Barbara Jensen,OU=Taipei,OU=Asia-Pacific,DC=example,DC=com&quot;,&quot;$ref&quot;:&quot;http://localhost:8080/iiq/scim/v2/Roles/c0a7777a7f74744d817e74fc12362c67&quot;}],&quot;capabilities&quot;:[&quot;Lorem dolor&quot;,&quot;aliquip in in&quot;],&quot;riskScore&quot;:125,&quot;isManager&quot;:false,&quot;administrator&quot;:{&quot;displayName&quot;:&quot;Bob Smith&quot;,&quot;value&quot;:&quot;c0a7777a7f74744d817e74fc12362c67O&quot;,&quot;$ref&quot;:&quot;http://localhost:8080/iiq/scim/v2/Users/c0a7777a7f74744d817e74fc12362c67&quot;},&quot;softwareVersion&quot;:&quot;7.3&quot;,&quot;empId&quot;:&quot;1b2a3c&quot;,&quot;dn&quot;:&quot;cn=Bob Smith,ou=services&quot;,&quot;region&quot;:&quot;Americas&quot;,&quot;regionOwner&quot;:{&quot;displayName&quot;:&quot;Joe Smith&quot;,&quot;value&quot;:&quot;c0b4568a4fe7458c434ee77d1fbt156b&quot;,&quot;$ref&quot;:&quot;http://localhost:8080/iiq/scim/v2/Users/c0b4568a4fe7458c434ee77d1fbt156b&quot;},&quot;location&quot;:&quot;Singapore&quot;,&quot;locationOwner&quot;:{&quot;displayName&quot;:&quot;Bob Smith&quot;,&quot;value&quot;:&quot;c0a7778b7ef71e79817ee74e6a1f0444&quot;,&quot;$ref&quot;:&quot;http://localhost:8080/iiq/scim/v2/Users/c0a7778b7ef71e79817ee74e6a1f0444&quot;},&quot;Department&quot;:&quot;Regional Operations&quot;,&quot;costcenter&quot;:[&quot;CC01&quot;,&quot;DD02&quot;],&quot;jobtitle&quot;:&quot;Internal Audit Manager&quot;,&quot;lastRefresh&quot;:&quot;2011-06-25T20:38:45.076Z&quot;},&quot;urn:ietf:params:scim:schemas:extension:enterprise:2.0:User&quot;:{&quot;manager&quot;:{&quot;displayName&quot;:&quot;Bob Smith&quot;,&quot;value&quot;:&quot;c7a7347a7fe71e69077ee75f5d1f1237&quot;,&quot;$ref&quot;:&quot;http://localhost:8080/iiq/scim/v2/Users/c7a7347a7fe71e69077ee75f5d1f1237&quot;}},&quot;meta&quot;:{&quot;created&quot;:&quot;2022-02-11T01:34:04.074-05:00&quot;,&quot;location&quot;:&quot;http://localhost:8080/iiq/scim/v2/Users/c0b4568a4fe7458c434ee77d1fbt156b&quot;,&quot;lastModified&quot;:&quot;2022-02-11T01:08:45.866-05:00&quot;,&quot;version&quot;:&quot;W/\&quot;1644561244074\&quot;&quot;,&quot;resourceType&quot;:&quot;User&quot;},&quot;schemas&quot;:[&quot;urn:ietf:params:scim:schemas:sailpoint:1.0:User&quot;,&quot;urn:ietf:params:scim:schemas:core:2.0:User&quot;,&quot;urn:ietf:params:scim:schemas:extension:enterprise:2.0:User&quot;]}