Invite parent organization's users API
The Parent Organization's User Invitation API (version v1).
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
authorizationCode flow, token URL https://localhost:9443/oauth2/token, authorization URL https://localhost:9443/oauth2/authorize
Parent Organization User Invitation
Invite a parent organization user to a child organization
POST /guests/invite
Initiates an invitation to a user in the parent organization to onboard to the child organization. This will be initiated from the child organization.
Scope(Permission) required: internal_org_guest_mgt_invite_add
Request body (required): application/json
Details that need to initiate an invitation
Schema: InvitationRequestBody
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
usernames | array of string | Yes | List of usernames of the users who will be invited to the organization. This can be an email or an alphanumeric username. |
userDomain | string | Userstore domain of the inviting user in the parent organization. If not provided, PRIMARY userstore will be used by default. | |
roles | array of string | Role assignments which the user will be assigned to. | |
groups | array of string | Group assignments which the user will be assigned to. | |
properties | array of Property | Custom properties of invitation which can be used in runtime but doesn't persist as invitation information. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Successful Response | InvitationSuccessListResponse |
400 | Bad Request | Error |
500 | Internal Server Error | Error |
introspect an invitation's confirmation code
POST /guests/invitation/introspect
This API can be used to introspect the confirmation code. This will be invoked from the application with the access token of the user which was logged into the application and switched to the organization where the user resides in.
Scope(Permission) required: internal_org_guest_mgt_invite_list
Request body (required): application/json
Details that need to introspect an invitation
Schema: IntrospectRequestBody
1 property
| Name | Type | Required | Description |
|---|---|---|---|
confirmationCode | string | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response | IntrospectSuccessResponse |
400 | Bad Request | Error |
401 | Unauthorized | Error |
403 | Forbidden | Error |
500 | Internal Server Error | Error |
Accepts an invitation from a user in the parent organization
POST /guests/invitation/accept
After user clicks on the link provided, the redirected application should invoke this API. This API is a public API and this should be invoked with the confirmation code which is appended to the notification.
Scope(Permission) required: None
Request body (required): application/json
Details that need to confirm an invitation
Schema: AcceptanceRequestBody
1 property
| Name | Type | Required | Description |
|---|---|---|---|
confirmationCode | string | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No Content | |
400 | Bad Request | Error |
500 | Internal Server Error | Error |
Invitation Management
List down the user invitations
GET /guests/invitations
List down the invitations triggered from the current organization. This should be invoked from an access token issued from an administrator of that organization.
Scope(Permission) required: internal_org_guest_mgt_invite_list
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
filter | query | string | Filtering the invitation based on the status. Status can be PENDING or EXPIRED. | |
limit | query | integer | Maximum number of records to return This parameter is not supported yet. | |
offset | query | integer | Starting index of the pagination This parameter is not supported yet. | |
sortOrder | query | string | Sort order of the returned records. Either ASC or DESC This parameter is not supported yet. Allowed values: | |
sortBy | query | string | Sort by a specific field This parameter is not supported yet. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response | InvitationsListResponse |
401 | Unauthorized | Error |
403 | Forbidden | Error |
500 | Internal Server Error | Error |
Delete an invitation
DEL /guests/invitations/{invitationId}
Based on the requirements the invitations which are initiated by the same organization can be deleted. This should be invoked from an access token issued from an administrator of that organization.
Scope(Permission) required: internal_org_guest_mgt_invite_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
invitationId | path | string | Yes | ID of the invitation to delete |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Successful Response and if the resource not found | |
400 | Bad Request | Error |
401 | Unauthorized | Error |
403 | Forbidden | Error |
500 | Internal Server Error | Error |
Schemas
InvitationRequestBody
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
usernames | array of string | Yes | List of usernames of the users who will be invited to the organization. This can be an email or an alphanumeric username. |
userDomain | string | Userstore domain of the inviting user in the parent organization. If not provided, PRIMARY userstore will be used by default. | |
roles | array of string | Role assignments which the user will be assigned to. | |
groups | array of string | Group assignments which the user will be assigned to. | |
properties | array of Property | Custom properties of invitation which can be used in runtime but doesn't persist as invitation information. |
InvitationSuccessListResponse
Type: array of InvitationSuccessResponse
InvitationSuccessResponse
Type: object
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
username | string | Yes | Username of the user who will be invited to the organization. This can be an email or an alphanumeric username. |
result | object | Yes | Role assignments which the user will be assigned to. |
result.status | string | ||
result.errorCode | string | ||
result.errorMessage | string | ||
result.errorDescription | string | ||
confirmationCode | string | Confirmation code for the invitation when internally managed notifications are disabled. |
IntrospectSuccessResponse
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
confirmationCode | string | Yes | Confirmation code of the invitation which needs to be introspected. |
username | string | Yes | Username of the user who will be invited to the organization. This can be an email or an alphanumeric username. |
userOrganization | string | Yes | Organization which the user is residing. |
initiatedOrganization | string | Yes | Organization which the invitation is initiated. |
status | string | Yes | Status of the invitation. |
InvitationsListResponse
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
invitations | array of InvitationResponse |
InvitationResponse
Type: object
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | |
username | string | Yes | |
email | string | Yes | |
roles | array of RoleAssignmentResponse | ||
groups | array of GroupAssignmentResponse | ||
status | string | Yes | |
expiredAt | string |
GroupAssignmentResponse
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
id | string |
RoleAssignmentResponse
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
id | string | ||
audience | object |
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | An error code. |
message | string | Yes | An error message. |
description | string | An error description. | |
traceId | string | An error trace identifier. |
Was this page helpful?