Get Loggedin User Organizations Using GET
Get organizations of principal user.
Principal user is identified via a token. The token should be passed in a header called csp-auth-token.If expand parameter is passed, detailed information for the organizations will be returned.
Access Policy
Role | User Accounts | Service Accounts (Client Credentials Applications) |
---|---|---|
All Roles | ✔️ | ❌ |
Indicates if response should be expanded, value is ignored - only the existence of parameter is checked.
OK
{
"refLinks": [
"string"
],
"items": [
{
"language": "string",
"displayName": "string",
"name": "string",
"maxAllowedAuthExemptedUserCount": 0,
"customerId": "string",
"refLink": "string",
"type": "string",
"parentRefLink": "string",
"locale": "string",
"trustedOrgs": [
{
"displayName": "string",
"id": "string",
"trustType": "string"
}
],
"enforceUserApiTokenMfa": false,
"trusteeOrgs": [
{
"displayName": "string",
"id": "string",
"trustType": "string"
}
],
"auditLogsInstanceId": "string",
"metadata": {
"metadata": "string"
},
"isMfaRequired": false,
"status": "string"
}
]
}
Links of references
The list of organization properties.
Invalid request body
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
The user is not authorized to use the API
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
The user is forbidden to use the API
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
No user with given token exists
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
The user has sent too many requests
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
An unexpected error has occurred while processing the request
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
curl -H 'Authorization: <value>' https://{api_host}/csp/gateway/am/api/loggedin/user/orgs