Get user effective access
Returns the resolved project access for a user, including access granted directly, via groups, and via organization-level grants.
/user-management/1/users/{userId}/effective-accessAuthorizations
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.
Path parameters
userIdstringrequiredUser id to resolve effective project access for.
Query parameters
orgIdintegerrequiredOrganization id for the authenticated API caller. Must match the organization tied to the org key pair in the Authorization header.
min: 1cursorstringOpaque 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: 200Response
application/jsondataobject[]requiredShow child attributes
principalIdstringrequiredprincipalTypestringrequiredusergroupappIdintegerrequiredmin: 0roleobjectrequiredA role as returned by the User Management API. Omits internal permission actions.
{"uuid":"3fa85f64-5717-4562-b3fc-2c963f66afa6","name":"Experiment Manager","orgId":36958,"tags":{"product":["experiment"],"type":"custom"}}uuidstringrequiredformat: uuidnamestringrequiredorgIdintegermin: 0tagsobjectrequiredTags associated with a role. Use the "description" key for a human readable summary.
{"product":["experiment"],"type":"custom"}sourcestringrequireddirectgrouporg-directorg-grouppaginationobjectrequiredCursor 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_secondsintegernullabletypestringrequiredRFC 7807 problem type URI
format: urititlestringrequiredstatusintegerrequireddetailstringnullableinstancestringnullableerror_codestringrequiredinvalid_requestauthentication_requiredinsufficient_permissionsorg_id_mismatchorg_not_enrollednot_foundconflictrate_limitedinternal_errorretryablebooleanrequiredretry_after_secondsintegernullableWas this helpful?