Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.truthlocks.com/llms.txt

Use this file to discover all available pages before exploring further.

Assigns a role to a user by creating a role binding. You can scope the binding to the entire tenant or to a specific organization within the tenant.

Parameters

user_id
uuid
required
The ID of the user to assign the role to.
role_id
uuid
required
The ID of the role to assign. Use the list roles endpoint to find available role IDs.
scope_type
string
The scope of the assignment. Defaults to "TENANT" if omitted. Use "ORG" to restrict the role to a single organization.
org_id
uuid
The organization to scope the assignment to. Required when scope_type is "ORG".

Responses