cURL
curl --request GET \ --url https://api.gcore.com/iam/clients/{clientId}/client-users/{userId} \ --header 'Authorization: <api-key>'
{ "user_role": { "id": 1, "name": "Administrators" } }
Returns user’s group in the specified account.
API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef
apikey
apikey 1234$abcdef
User's ID.
Account ID.
OK.
User's group.
Was this page helpful?