CommunityCreate AccountSign in
  • Overview
    • Welcome
    • Authentication
    • Using Environments
  • API Reference
LogoLogo
LogoLogo
CommunityCreate AccountSign in
API ReferenceUsers

List User Roles

GET
https://api.x.flatfile.com/v1/users/:userId/roles
GET
/v1/users/:userId/roles
1from flatfile import Flatfile
2
3client = Flatfile(
4 token="YOUR_TOKEN",
5)
6client.users.list_user_roles(
7 user_id="userId",
8)
Try it
1{
2 "data": [
3 {
4 "id": "id",
5 "roleId": "roleId",
6 "actorId": "actorId",
7 "resourceId": "resourceId",
8 "createdAt": "2024-01-15T09:30:00Z",
9 "updatedAt": "2024-01-15T09:30:00Z"
10 },
11 {
12 "id": "id",
13 "roleId": "roleId",
14 "actorId": "actorId",
15 "resourceId": "resourceId",
16 "createdAt": "2024-01-15T09:30:00Z",
17 "updatedAt": "2024-01-15T09:30:00Z"
18 }
19 ]
20}
Lists roles assigned to a user.
Was this page helpful?
Previous

Assign Role to User

Next
Built with
Assign Role to User
Lists roles assigned to a user.

Authentication

AuthorizationBearer
Bearer authentication of the form `Bearer <token>`, where token is your auth token.

Path parameters

userIdstringRequired
The user id

Headers

X-Disable-Hooks"true"RequiredDefaults to true

Response

This endpoint returns an object.
datalist of objects

Errors

The user id

Bearer authentication of the form Bearer <token>, where token is your auth token.