Get User Invitation By Organization Id And User Invitation Id Using GET
Get invitation of a user in an organization (by invitation id).
Access Policy
Role | User Accounts | Service Accounts (Client Credentials Applications) |
---|---|---|
Organization Admin | ✔️ | ✔️ |
Organization Owner | ✔️ | ✔️ |
Unique identifier (GUID) of the organization.
Unique identifier (GUID) of the invitation.
OK
{
"status": "AVAILABLE",
"refLink": "string",
"customGroups": [
{
"groupType": "string",
"displayName": "string",
"id": "string",
"organizationRoles": [
{
"displayName": "string",
"name": "string",
"expiresAt": 3609941597,
"createdBy": "string",
"lastUpdatedDate": "string",
"resource": "string",
"membershipType": "string",
"createdDate": "string",
"lastUpdatedBy": "string"
}
],
"serviceRoles": [
{
"serviceRoleNames": [
"string"
],
"serviceDefinitionId": "string",
"serviceRoles": [
{
"createdBy": "string",
"lastUpdatedBy": "string",
"name": "string",
"lastUpdatedDate": "string",
"expiresAt": 3609941597,
"membershipType": "string",
"resource": "string",
"createdDate": "string"
}
]
}
],
"ownerOrgId": "string",
"domain": "string",
"sharedOrgIds": [
"string"
],
"customRoles": [
{
"createdBy": "string",
"lastUpdatedBy": "string",
"name": "string",
"lastUpdatedDate": "string",
"expiresAt": 3609941597,
"membershipType": "string",
"resource": "string",
"createdDate": "string"
}
],
"usersCount": 0,
"description": "string"
}
],
"invitedByUsername": "string",
"customRoles": [
{
"createdBy": "string",
"lastUpdatedBy": "string",
"name": "string",
"lastUpdatedDate": "string",
"expiresAt": 3609941597,
"membershipType": "string",
"resource": "string",
"createdDate": "string"
}
],
"orgRoleNames": [
"string"
],
"organizationRoles": [
{
"displayName": "string",
"name": "string",
"expiresAt": 3609941597,
"createdBy": "string",
"lastUpdatedDate": "string",
"resource": "string",
"membershipType": "string",
"createdDate": "string",
"lastUpdatedBy": "string"
}
],
"serviceRolesDtos": [
{
"serviceRoleNames": [
"string"
],
"serviceDefinitionLink": "string",
"serviceRoles": [
{
"createdBy": "string",
"lastUpdatedBy": "string",
"name": "string",
"lastUpdatedDate": "string",
"expiresAt": 3609941597,
"membershipType": "string",
"resource": "string",
"createdDate": "string"
}
]
}
],
"generatedBy": "string",
"username": "string",
"customGroupsIds": [
"string"
],
"redeemedBy": "string",
"expirationTime": 0,
"redeemedAt": 0,
"generatedAt": 0,
"revokedBy": "string",
"invitationLink": "string",
"revokedAt": 0
}
The status of the invitation.
The reference link of the Invitation.
Custom Groups (relevant only for invite).
Invited By, specify the actual user who is inviting.
List of custom role objects.
List of organization role names.
List of organization role objects.
List of services roles objects.
The Creator ot the invitation (usually client identifier).
The username of the user.
Custom Groups Identifiers (relevant only for invite).
The name of the invitation redeemer.
The expiration time of the invitation in days. Default value is 7 days.
The redemption timestamp in milliseconds.
The creation timestamp in milliseconds.
The name of invitation revoker.
Deprecated: the common Invitation Link.
The revoke timestamp in milliseconds.
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
Organization with this identifier is not found. | Invitation not found
"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/orgs/{orgId}/invitations/{userInvitationId}