[{"label":"Latest (v1.0)","version":"latest"}]
csp

Get Loggedin User Organizations V2

Description

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 ✔️

Request

Request

URL

URL


get
https://{api_host}/csp/gateway/am/api/v2/loggedin/user/orgs
Copy

Query Parameters

Query Parameters

integer
pageLimit Optional

Specifies the maximum results per page for every call.

Parameter Serialization Style: FORM Explode:true

integer
pageStart Optional

Specifies the index that the set of results will begin with

Parameter Serialization Style: FORM Explode:true

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns PagedResponseOrganizationDto of type application/json
{
    "nextLink": "/csp/serviceName/ResourceName?pageStart=60&pageLimit=15",
    "prevLink": "/csp/serviceName/ResourceName?pageStart=30&pageLimit=15",
    "totalResults": 2000
}
string
nextLink Optional

Relative path to next page if exists. Not returned for POST requests.


string
prevLink Optional

Relative path to previous page if exists. Not returned for POST requests.


array of OrganizationDto
results Optional

Partial list of returned results.


integer as int32
totalResults Optional

Total number of results if available.

Errors

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

Code Samples

cURL Command

curl https://{api_host}/csp/gateway/am/api/v2/loggedin/user/orgs


Feedback

Was this page helpful?