Method: users.bulkEditAssignedUserRoles
Stay organized with collections
Save and categorize content based on your preferences.
HTTP request
POST https://displayvideo.googleapis.com/v1beta2/users/{userId}:bulkEditAssignedUserRoles
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
userId |
string (int64 format)
Required. The ID of the user to which the assigned user roles belong.
|
Request body
The request body contains data with the following structure:
JSON representation |
{
"deletedAssignedUserRoles": [
string
],
"createdAssignedUserRoles": [
{
object (AssignedUserRole )
}
]
} |
Fields |
deletedAssignedUserRoles[] |
string
The assigned user roles to delete in batch, specified as a list of assigned_user_role_ids . The format of assignedUserRoleId is entityType-entityid , for example partner-123 .
|
createdAssignedUserRoles[] |
object (AssignedUserRole )
The assigned user roles to create in batch, specified as a list of AssignedUserRoles .
|
Response body
If successful, the response body contains data with the following structure:
JSON representation |
{
"createdAssignedUserRoles": [
{
object (AssignedUserRole )
}
]
} |
Fields |
createdAssignedUserRoles[] |
object (AssignedUserRole )
The list of assigned user roles that have been successfully created. This list will be absent if empty.
|
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/display-video-user-management
For more information, see the OAuth 2.0 Overview.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["This operation allows you to bulk edit user roles by deleting and assigning new roles for a specified user."],["You need to provide the user ID and lists of assigned user roles to delete and create in the request."],["The request body requires specifying the `deletedAssignedUserRoles` and `createdAssignedUserRoles` fields with appropriate data."],["The response will contain a list of successfully created assigned user roles, if any."],["This operation requires authorization with the `https://www.googleapis.com/auth/display-video-user-management` scope."]]],["This operation bulk edits user roles via a POST request to a specified user ID. It deletes existing roles listed in `deletedAssignedUserRoles` (specified by `entityType-entityid`) and creates new roles from `createdAssignedUserRoles` in the request body. The response body includes a list of successfully created roles in `createdAssignedUserRoles`. The required authorization scope is `https://www.googleapis.com/auth/display-video-user-management`. The request body requires two fields to delete and create assigned user roles.\n"]]