[{"label":"Latest (1.0)","version":"latest"}]
cloud-partner-navigator
Update Service Roles For Multiple Users
DescriptionUpdates the service roles of users in an organization.
Request
URLURL
https://console.navigator.vmware.com/cphub/api/auth/v1/orgs/{orgId}/users-service-roles
Path Parameters
Path Parameters
string
orgId
Required
Unique identifier (GUID) of the organization.
Query Parameters
Query Parameters
string
context
Optional
context can be OPERATOR, PROVIDER or TENANT.
Request Body
Request Body
UserServiceRolesItemForAuth
of mimetype application/json
Optional
Request body to update service roles of users in an organization
{
"serviceRolesItems": [
{
"roleNamesToAdd": [
"...",
"..."
],
"roleNamesToRemove": [
"...",
"..."
],
"serviceId": "..."
},
{
"roleNamesToAdd": [
"...",
"..."
],
"roleNamesToRemove": [
"...",
"..."
],
"serviceId": "..."
}
],
"users": [
"...",
"..."
]
}
array of
string
users
Optional
Defines the list of users.
Authentication
This operation uses the following authentication methods.
Response
Response
Response BodyResponse Body
200 OK
Returns
array
of
UserServiceRolesForAuth
of type application/json
{
"serviceRoles": [
{
"resourceTypes": [
"string"
],
"resources": [
{
"id": "string",
"name": "string"
}
],
"roles": [
{
"associatedResources": [
"string"
],
"defaultRole": false,
"displayName": "string",
"enabled": false,
"hidden": false,
"memberType": "DIRECT",
"mspDefaultRole": false,
"mspDefaultRoleOfProviderAtTenant": false,
"name": "string",
"resource": "string",
"roleId": "string",
"status": "string"
}
],
"serviceDisplayName": "string",
"serviceId": "string"
}
],
"user": {
"accessible": false,
"address": "string",
"city": "string",
"company": "string",
"country": "string",
"createTimestamp": 0,
"createdByUserId": "string",
"domain": "string",
"email": "string",
"emailVerified": "string",
"eulaInfo": "string",
"firstName": "string",
"id": "string",
"idpId": "string",
"internalId": "string",
"lastName": "string",
"password": "string",
"state": "string",
"tradeId": "string",
"updateTimestamp": 0,
"updatedByUserId": "string",
"username": "string",
"website": "string",
"workPhone": "string",
"zipcode": "string"
}
}
Errors
401
Unauthorized - The user is not authorized to use the API
500
Internal Server Error - An unexpected error has occurred while processing the request
Code Samples
cURL Command
curl -X PATCH -H "Content-Type: application/json" -d '{"serviceRolesItems":[{"roleNamesToAdd":["...","..."],"roleNamesToRemove":["...","..."],"serviceId":"..."},{"roleNamesToAdd":["...","..."],"roleNamesToRemove":["...","..."],"serviceId":"..."}],"users":["...","..."]}' https://console.navigator.vmware.com/cphub/api/auth/v1/orgs/{orgId}/users-service-roles
Vendor Extensions
This operation contains the following vendor extensions defined in the spec:
x-codegen-request-body-name: body
[{"label":"Latest (1.0)","version":"latest"}]
cloud-partner-navigator
On This Page
Service Organization Operations
post
post
delete
get
get
delete