[{"label":"Latest (v1.0)","version":"latest"}]
csp
Get Loggedin User Organizations Deprecated
DescriptionGet 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 | ✔️ | ❌ |
Request
URLURL
https://{api_host}/csp/gateway/am/api/loggedin/user/orgs
Query Parameters
Query Parameters
string
expand
Optional
Indicates if response should be expanded, value is ignored - only the existence of parameter is checked.
Parameter Serialization Style:
FORM Explode:true
Authentication
This operation uses the following authentication methods.
Response
Response
Response BodyResponse Body
200 OK
Returns
OrganizationsDto
of type application/json
{
"items": [
{
"auditLogsInstanceId": "string",
"displayName": "string",
"enforceUserApiTokenMfa": false,
"isMfaRequired": false,
"language": "string",
"locale": "string",
"maxAllowedAuthExemptedUserCount": 0,
"metadata": {
"key": "string"
},
"name": "string",
"parentRefLink": "string",
"refLink": "string",
"status": "string",
"trustedOrgs": [
{
"id": "string"
}
]
}
],
"refLinks": [
"string"
]
}
array of
string
refLinks
Optional
Links of references
Errors
CspErrorResponse
400
Invalid request body
CspErrorResponse
401
The user is not authorized to use the API
CspErrorResponse
403
The user is forbidden to use the API
CspErrorResponse
404
No user with given token exists
CspErrorResponse
429
The user has sent too many requests
CspErrorResponse
500
An unexpected error has occurred while processing the request
Code Samples
cURL Command
curl https://{api_host}/csp/gateway/am/api/loggedin/user/orgs
[{"label":"Latest (v1.0)","version":"latest"}]
csp