AI-generated Key Takeaways
-
The UserRole resource manages user access within Display & Video 360 by defining roles and their associated permissions.
-
Each UserRole has properties like ID, name, permissions, and whether it's a default system role.
-
UserRoles can be managed through various methods including creation, deletion, retrieval, and updates.
-
A UserRole is defined by its JSON representation with specific fields like ID, name, account/subaccount IDs, parent role, permissions, default status, and resource kind.
-
You can use methods such as
delete
,get
,insert
,list
,patch
, andupdate
to interact with and manage UserRoles within the system.
Resource: UserRole
Contains properties of auser role, which is used to manage user access.
JSON representation |
---|
{
"id": string,
"name": string,
"accountId": string,
"subaccountId": string,
"parentUserRoleId": string,
"permissions": [
{
object ( |
Fields | |
---|---|
id |
ID of this user role. This is a read-only, auto-generated field. |
name |
Name of this user role. This is a required field. Must be less than 256 characters long. If this user role is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this user role is a top-level user role, and the name must be unique among top-level user roles of the same account. |
accountId |
Account ID of this user role. This is a read-only field that can be left blank. |
subaccountId |
Subaccount ID of this user role. This is a read-only field that can be left blank. |
parentUserRoleId |
ID of the user role that this user role is based on or copied from. This is a required field. |
permissions[] |
userRoles.list of permissions associated with this user role. |
defaultUserRole |
Whether this is a default user role. Default user roles are created by the system for the account/subaccount and cannot be modified or deleted. Each default user role comes with a basic set of preassigned permissions. |
kind |
Identifies what kind of resource this is. Value: the fixed string
. |
Methods |
|
---|---|
|
Deletes an existing user role. |
|
Gets one user role by ID. |
|
Inserts a new user role. |
|
Retrieves a list of user roles, possibly filtered. |
|
Updates an existing user role. |
|
Updates an existing user role. |