List project role assignments
Returns a paginated list of explicit project role assignments for the caller's organization. Optional filters: principalId, projectId, and roleId.
/user-management/1/project-role-assignmentsAuthorizations
AuthorizationstringrequiredContact Amplitude Support to obtain your organization's org API key and org secret key.Send them as HTTP Basic credentials on every request: org API key in the username field, org secret key in the password field. Also include orgId as a query parameter for your organization.401: invalid credentials. 403 (org_not_enrolled): your organization is not enabled for this API.
Query parameters
orgIdintegerrequiredOrganization id for the authenticated API caller. Must match the organization tied to the org key pair in the Authorization header.
min: 1projectIdintegermin: 1roleIdstringformat: uuidcursorstringOpaque pagination cursor from a previous response pagination.nextCursor. Omit to start at the first page.
limitintegerMaximum number of items per page. Defaults to 50 when omitted and is capped at 200.
min: 1max: 200principalIdstringResponse
application/jsondataobject[]requiredShow child attributes
idstringrequiredmin length: 1principalTypestringrequiredWhether the assignment targets an individual user (user) or a group (group)
usergroupuserprincipalIdstringrequiredmin length: 1projectIdintegerrequiredmin: 0roleIdstringrequiredformat: uuidpaginationobjectrequiredCursor pagination metadata. nextCursor is the cursor to pass to fetch the next page, or null when there are no more results. hasMore indicates whether another page is available.
{"nextCursor":0,"hasMore":true}Show child attributes
nextCursorstringrequirednullablehasMorebooleanrequiredtypestringrequiredRFC 7807 problem type URI
format: urititlestringrequiredstatusintegerrequireddetailstringnullableinstancestringnullableerror_codestringrequiredinvalid_requestauthentication_requiredinsufficient_permissionsorg_id_mismatchorg_not_enrollednot_foundconflictrate_limitedinternal_errorretryablebooleanrequiredretry_after_secondsintegernullabletypestringrequiredRFC 7807 problem type URI
format: urititlestringrequiredstatusintegerrequireddetailstringnullableinstancestringnullableerror_codestringrequiredinvalid_requestauthentication_requiredinsufficient_permissionsorg_id_mismatchorg_not_enrollednot_foundconflictrate_limitedinternal_errorretryablebooleanrequiredretry_after_secondsintegernullabletypestringrequiredRFC 7807 problem type URI
format: urititlestringrequiredstatusintegerrequireddetailstringnullableinstancestringnullableerror_codestringrequiredinvalid_requestauthentication_requiredinsufficient_permissionsorg_id_mismatchorg_not_enrollednot_foundconflictrate_limitedinternal_errorretryablebooleanrequiredretry_after_secondsintegernullabletypestringrequiredRFC 7807 problem type URI
format: urititlestringrequiredstatusintegerrequireddetailstringnullableinstancestringnullableerror_codestringrequiredinvalid_requestauthentication_requiredinsufficient_permissionsorg_id_mismatchorg_not_enrollednot_foundconflictrate_limitedinternal_errorretryablebooleanrequiredretry_after_secondsintegernullabletypestringrequiredRFC 7807 problem type URI
format: urititlestringrequiredstatusintegerrequireddetailstringnullableinstancestringnullableerror_codestringrequiredinvalid_requestauthentication_requiredinsufficient_permissionsorg_id_mismatchorg_not_enrollednot_foundconflictrate_limitedinternal_errorretryablebooleanrequiredretry_after_secondsintegernullableWas this helpful?