Skip to content

Return Users Roles By User Id

Request

Lists the roles assigned to a user, one page at a time.

Security
bearerToken
Path
userIdinteger, (int32)required

Identifier of the user whose role assignments are listed.

Query
pageinteger

Starting page number.

Default:1
pageSizeinteger, (int32)

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

Default:10
curl -i -X GET \
  'https://connect.sandbox.creditsafe.com/v1/compliance/kyc-protect/authorization/users/{userId}/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.

countinteger, (int32)

Total number of role assignments for the user.

Response
{ "correlationId": "string", "items": [ { … } ], "count": 0 }