Get Loggedin User Organizations V2 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 | ✔️ | ❌ |
Specifies the index that the set of results will begin with
Specifies the maximum results per page for every call.
OK
{
"prevLink": "/csp/serviceName/ResourceName?pageStart=30&pageLimit=15",
"results": [
{
"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"
}
],
"totalResults": 2000,
"nextLink": "/csp/serviceName/ResourceName?pageStart=60&pageLimit=15"
}
Relative path to previous page if exists. Not returned for POST requests.
Partial list of returned results.
Total number of results if available.
Relative path to next page if exists. Not returned for POST requests.
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/v2/loggedin/user/orgs