Skip to content

Return Users Roles By User Id

Request

Returns a page of the roles a user has, one for each team they belong to. page and pageSize are required.

Security
bearerToken
Path
userIdinteger, (int32)required

Identifier of the user whose role assignments are listed.

Example:100000001
Query
pageinteger, (int32), >= 1required

The page number to fetch. Should be a positive integer.

Example:page=1
pageSizeinteger, (int32), [ 1 .. 100 ]required

Specifies the number of items to be displayed per page. Allowed values are between 1 and 100.

Example:pageSize=10
curl -i -X GET \
  'https://connect.sandbox.creditsafe.com/v1/compliance/kyc-protect/authorization/users/100000001/roles?page=1&pageSize=10' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Success. Returns a paginated list of roles assigned to the user.

Bodyapplication/json
correlationIdstring

A unique ID assigned to this request.

itemsArray of objects(AuthorizationUserRoleResponse)

Role assignments for the current page.

totalSizeinteger, (int32)

Total number of role assignments for the user.

Response
{ "items": [ { … } ], "totalSize": 1, "correlationId": "572fa04c-de06-41e5-9211-0551011c7eb3" }