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
Show optional properties
{
"usernames": [
{}
]
}
{
"customGroupsIds": [
"string"
],
"customRoles": [
{
"createdBy": "string",
"createdDate": "string",
"expiresAt": 3609941597,
"lastUpdatedBy": "string",
"lastUpdatedDate": "string",
"membershipType": "string",
"name": "string",
"resource": "string"
}
],
"invitationExpirationInDays": 0,
"invitedBy": "string",
"notifyUsersOfOrgAccess": false,
"notifyUsersOfRegistration": false,
"orgRoleNames": [
"string"
],
"organizationRoles": [
{
"createdBy": "string",
"createdDate": "string",
"expiresAt": 3609941597,
"lastUpdatedBy": "string",
"lastUpdatedDate": "string",
"membershipType": "string",
"name": "string",
"resource": "string"
}
],
"serviceRolesDtos": [
{
"serviceDefinitionLink": "string",
"serviceRoleNames": [
"string"
],
"serviceRoles": [
{
"createdBy": "string",
"createdDate": "string",
"expiresAt": 3609941597,
"lastUpdatedBy": "string",
"lastUpdatedDate": "string",
"membershipType": "string",
"name": "string",
"resource": "string"
}
]
}
],
"skipNotify": false,
"skipNotifyRegistration": false,
"usernames": [
"string"
]
}
Custom Groups (relevant only for invite).
Custom Roles (relevant only for invite).
The expiration time of the invitation in days. Default value is 7 days.
Invited By, specify the actual user who is inviting.
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 Tanzu.
Deprecated: Org role names (use organizationRoles instead)
Organization roles (relevant only for invite).
Service Roles (relevant only for invite).
Deprecated: Indicates if the notification have to be skipped (Use notifyUsers instead)
Deprecated: Prevent sending mails to users that do not yet have a CSP profile (Use notifyUsersOfRegistration instead)
List of Usernames (e-mails) of users.
Accepted
Invalid request body | Platform Operator and Read-only Operator roles can only be assigned to vmware.com and csp.local users
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
The user is not authorized to use the API
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
The user is forbidden to use the API
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
Organization with this identifier is not found.
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
The request could not be processed due to a conflict
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
The user has sent too many requests
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
An unexpected error has occurred while processing the request
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"usernames":["string"]}' https://{api_host}/csp/gateway/am/api/orgs/{orgId}/invitations