Class UserRole
Contains properties of auser role, which is used to manage user access.
Implements
Inherited Members
Namespace: Google.Apis.Dfareporting.v4.Data
Assembly: Google.Apis.Dfareporting.v4.dll
Syntax
public class UserRole : IDirectResponseSchema
Properties
AccountId
Account ID of this user role. This is a read-only field that can be left blank.
Declaration
[JsonProperty("accountId")]
public virtual long? AccountId { get; set; }
Property Value
Type | Description |
---|---|
long? |
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.
Declaration
[JsonProperty("defaultUserRole")]
public virtual bool? DefaultUserRole { get; set; }
Property Value
Type | Description |
---|---|
bool? |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Id
ID of this user role. This is a read-only, auto-generated field.
Declaration
[JsonProperty("id")]
public virtual long? Id { get; set; }
Property Value
Type | Description |
---|---|
long? |
Kind
Identifies what kind of resource this is. Value: the fixed string "dfareporting#userRole".
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
Type | Description |
---|---|
string |
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.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
ParentUserRoleId
ID of the user role that this user role is based on or copied from. This is a required field.
Declaration
[JsonProperty("parentUserRoleId")]
public virtual long? ParentUserRoleId { get; set; }
Property Value
Type | Description |
---|---|
long? |
Permissions
List of permissions associated with this user role.
Declaration
[JsonProperty("permissions")]
public virtual IList<UserRolePermission> Permissions { get; set; }
Property Value
Type | Description |
---|---|
IList<UserRolePermission> |
SubaccountId
Subaccount ID of this user role. This is a read-only field that can be left blank.
Declaration
[JsonProperty("subaccountId")]
public virtual long? SubaccountId { get; set; }
Property Value
Type | Description |
---|---|
long? |