curl --request GET \
--url https://api.gcore.com/iam/users/{userId} \
--header 'Authorization: <api-key>'
{
"id": 123,
"email": "jsmith@example.com",
"name": "<string>",
"lang": "de",
"phone": "<string>",
"company": "<string>",
"reseller": 123,
"client": 123,
"deleted": true,
"groups": [
{
"id": 1,
"name": "Administrators"
}
],
"activated": true,
"sso_auth": true,
"two_fa": true,
"auth_types": [
"password"
],
"user_type": "common",
"is_active": true,
"client_and_roles": [
{
"client_id": 123,
"client_company_name": "<string>",
"user_roles": [
"2"
],
"user_id": 123
}
]
}
curl --request GET \
--url https://api.gcore.com/iam/users/{userId} \
--header 'Authorization: <api-key>'
{
"id": 123,
"email": "jsmith@example.com",
"name": "<string>",
"lang": "de",
"phone": "<string>",
"company": "<string>",
"reseller": 123,
"client": 123,
"deleted": true,
"groups": [
{
"id": 1,
"name": "Administrators"
}
],
"activated": true,
"sso_auth": true,
"two_fa": true,
"auth_types": [
"password"
],
"user_type": "common",
"is_active": true,
"client_and_roles": [
{
"client_id": 123,
"client_company_name": "<string>",
"user_roles": [
"2"
],
"user_id": 123
}
]
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
User's ID.
OK.
The response is of type object
.
Was this page helpful?