Skip to main content

Get User Role

GET 

/api/v1/organizations/:organization_id/users/roles

Get the role of a user in an organization.

Request

Path Parameters

    organization_id uuidrequired

Cookie Parameters

    session any

Responses

Successful Response

Schema

    anyOf

    Schema for a user's role in an organization.

    id uuidrequired

    Unique identifier

    created_at

    object

    Creation datetime

    anyOf

    string

    updated_at

    object

    Update datetime

    anyOf

    string

    user_id User Id (string)required

    The user's ID.

    organization_id uuidrequired

    The organization's ID.

    role_id uuidrequired

    The role's ID.

    role

    object

    required

    The role.

    id uuidrequired

    Unique identifier

    created_at

    object

    Creation datetime

    anyOf

    string

    updated_at

    object

    Update datetime

    anyOf

    string

    name Name (string)required

    A name for the role.

    Possible values: non-empty and <= 3000 characters

    organization_id

    object

    required

    The organization's ID.

    anyOf

    string

    permissions

    object[]

    required

    The actual permissions of the role.

  • Array [

  • id uuidrequired

    Unique identifier

    created_at

    object

    Creation datetime

    anyOf

    string

    updated_at

    object

    Update datetime

    anyOf

    string

    name Name (string)required

    A name for the permission.

    Possible values: non-empty and <= 3000 characters

    description

    object

    required

    A description for the permission.

    anyOf

    string

    access Access (boolean)required

    Whether the permission is granted or not.

  • ]