# Google Analytics Admin V1alpha API - Class Google::Analytics::Admin::V1alpha::UserLink (v0.11.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.11.0 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-admin-v1alpha/latest/Google-Analytics-Admin-V1alpha-UserLink)
- [0.10.0](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-admin-v1alpha/0.10.0/Google-Analytics-Admin-V1alpha-UserLink)
- [0.9.1](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-admin-v1alpha/0.9.1/Google-Analytics-Admin-V1alpha-UserLink)
Reference documentation and code samples for the Google Analytics Admin V1alpha API class Google::Analytics::Admin::V1alpha::UserLink.

A resource message representing a user's permissions on an Account or
Property resource.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #direct_roles

    def direct_roles() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Roles directly assigned to this user for this account or property.

  Valid values:
  predefinedRoles/viewer
  predefinedRoles/analyst
  predefinedRoles/editor
  predefinedRoles/admin
  predefinedRoles/no-cost-data
  predefinedRoles/no-revenue-data

  Excludes roles that are inherited from a higher-level entity, group,
  or organization admin role.

  A UserLink that is updated to have an empty list of direct_roles will be
  deleted.

### #direct_roles=

    def direct_roles=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Roles directly assigned to this user for this account or property.


  Valid values:
  predefinedRoles/viewer
  predefinedRoles/analyst
  predefinedRoles/editor
  predefinedRoles/admin
  predefinedRoles/no-cost-data
  predefinedRoles/no-revenue-data

  Excludes roles that are inherited from a higher-level entity, group,
  or organization admin role.

  A UserLink that is updated to have an empty list of direct_roles will be
  deleted.
**Returns**

- (::Array\<::String\>) --- Roles directly assigned to this user for this account or property.

  Valid values:
  predefinedRoles/viewer
  predefinedRoles/analyst
  predefinedRoles/editor
  predefinedRoles/admin
  predefinedRoles/no-cost-data
  predefinedRoles/no-revenue-data

  Excludes roles that are inherited from a higher-level entity, group,
  or organization admin role.

  A UserLink that is updated to have an empty list of direct_roles will be
  deleted.

### #email_address

    def email_address() -> ::String

**Returns**

- (::String) --- Immutable. Email address of the user to link

### #email_address=

    def email_address=(value) -> ::String

**Parameter**

- **value** (::String) --- Immutable. Email address of the user to link
**Returns**

- (::String) --- Immutable. Email address of the user to link

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. Example format: properties/1234/userLinks/5678