Show / Hide Table of Contents

Class UserRole

Contains properties of auser role, which is used to manage user access.

Inheritance
object
UserRole
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Dfareporting.v3_5.Data
Assembly: Google.Apis.Dfareporting.v3_5.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
System.Collections.Generic.IList<T><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?

Implements

IDirectResponseSchema
In This Article
Back to top Generated by DocFX