List Roles For A Company User
list_roles_for_a_company_userRetrieve a paginated list of roles for a company user, including roles from assigned projects. Use to find role IDs or filter directory records.
Instructions
This endpoint returns the list of Roles for the specified User. This includes the roles of Projects that the User is currently assigned to. Use this to enumerate Directory records when you need a paginated overview, to find IDs, or to filter by query parameters. Returns a paginated JSON array of Directory records. Use page and per_page to control pagination; the response includes pagination metadata. Required parameters: company_id, user_id. Procore API: Core > Directory. Endpoint: GET /rest/v1.0/companies/{company_id}/users/{user_id}/project_assignments/filter_options/roles
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_id | Yes | URL path parameter — unique identifier for the company. | |
| user_id | Yes | URL path parameter — unique identifier of the user | |
| page | No | Page number for paginated results (default: 1) | |
| per_page | No | Number of items per page (default: 100, max: 100) |