[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Analytics Admin V1alpha API - Class Google::Analytics::Admin::V1alpha::UserLink (v0.11.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.11.0 (latest)](/ruby/docs/reference/google-analytics-admin-v1alpha/latest/Google-Analytics-Admin-V1alpha-UserLink)\n- [0.10.0](/ruby/docs/reference/google-analytics-admin-v1alpha/0.10.0/Google-Analytics-Admin-V1alpha-UserLink)\n- [0.9.1](/ruby/docs/reference/google-analytics-admin-v1alpha/0.9.1/Google-Analytics-Admin-V1alpha-UserLink) \nReference documentation and code samples for the Google Analytics Admin V1alpha API class Google::Analytics::Admin::V1alpha::UserLink.\n\nA resource message representing a user's permissions on an Account or\nProperty resource. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #direct_roles\n\n def direct_roles() -\u003e ::Array\u003c::String\u003e\n\n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Roles directly assigned to this user for this account or property.\n\n Valid values:\n predefinedRoles/viewer\n predefinedRoles/analyst\n predefinedRoles/editor\n predefinedRoles/admin\n predefinedRoles/no-cost-data\n predefinedRoles/no-revenue-data\n\n Excludes roles that are inherited from a higher-level entity, group,\n or organization admin role.\n\n A UserLink that is updated to have an empty list of direct_roles will be\n deleted.\n\n### #direct_roles=\n\n def direct_roles=(value) -\u003e ::Array\u003c::String\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::String\\\u003e) --- Roles directly assigned to this user for this account or property.\n\n\n Valid values:\n predefinedRoles/viewer\n predefinedRoles/analyst\n predefinedRoles/editor\n predefinedRoles/admin\n predefinedRoles/no-cost-data\n predefinedRoles/no-revenue-data\n\n Excludes roles that are inherited from a higher-level entity, group,\n or organization admin role.\n\n A UserLink that is updated to have an empty list of direct_roles will be\ndeleted. \n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Roles directly assigned to this user for this account or property.\n\n Valid values:\n predefinedRoles/viewer\n predefinedRoles/analyst\n predefinedRoles/editor\n predefinedRoles/admin\n predefinedRoles/no-cost-data\n predefinedRoles/no-revenue-data\n\n Excludes roles that are inherited from a higher-level entity, group,\n or organization admin role.\n\n A UserLink that is updated to have an empty list of direct_roles will be\n deleted.\n\n### #email_address\n\n def email_address() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Immutable. Email address of the user to link\n\n### #email_address=\n\n def email_address=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Immutable. Email address of the user to link \n**Returns**\n\n- (::String) --- Immutable. Email address of the user to link\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Output only. Example format: properties/1234/userLinks/5678"]]