Invite Users Using POST
Create/Revoke Organization User Invitation.
Note: When passing the action query param with value revoke the invitations for the given usernames will be revoked.
Access Policy
Role | User Accounts | Service Accounts (Client Credentials Applications) |
---|---|---|
Organization Admin | ✔️ | ✔️ |
Organization Owner | ✔️ | ✔️ |
Unique identifier (GUID) of the organization.
Action option, should be used for revoke
"UsersOrganizationInvitationRequest Object"
Deprecated: Org role names (use organizationRoles instead)
Organization roles (relevant only for invite).
Service Roles (relevant only for invite).
Send e-mail notification to existing user(s) informing about org access that is granted.
Send e-mail notification to new user(s) inviting them to VMware cloud services.
Custom Groups (relevant only for invite).
Deprecated: Indicates if the notification have to be skipped (Use notifyUsers instead)
Invited By, specify the actual user who is inviting.
Custom Roles (relevant only for invite).
List of Usernames (e-mails) of users.
The expiration time of the invitation in days. Default value is 7 days.
Deprecated: Prevent sending mails to users that do not yet have a CSP profile (Use notifyUsersOfRegistration instead)
Accepted
Invalid request body | Platform Operator and Read-only Operator roles can only be assigned to vmware.com and csp.local users
{
"cspErrorCode": "string",
"message": "string",
"errorCode": "string",
"requestId": "string",
"moduleCode": 0,
"statusCode": 0
}
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
Organization with this identifier is not found.
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
The request could not be processed due to a conflict
"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 -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/csp/gateway/am/api/orgs/{orgId}/invitations