Reference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class User.
TheUsermessage represents a user associated with a Merchant Center
account. It is used to manage user permissions and access rights within the
account. For more information, seeFrequently asked questions about people
and access levels.
Generated from protobuf messagegoogle.shopping.merchant.accounts.v1.User
Namespace
Google \ Shopping \ Merchant \ Accounts \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. The resource name of the user. Format:accounts/{account}/user/{email}Usemeto refer to your own email address, for exampleaccounts/{account}/users/me.
[[["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-04 UTC."],[],[],null,["# Google Shopping Merchant Accounts V1 Client - Class User (1.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0 (latest)](/php/docs/reference/shopping-merchant-accounts/latest/V1.User)\n- [0.10.0](/php/docs/reference/shopping-merchant-accounts/0.10.0/V1.User)\n- [0.9.1](/php/docs/reference/shopping-merchant-accounts/0.9.1/V1.User)\n- [0.8.0](/php/docs/reference/shopping-merchant-accounts/0.8.0/V1.User)\n- [0.7.0](/php/docs/reference/shopping-merchant-accounts/0.7.0/V1.User)\n- [0.6.0](/php/docs/reference/shopping-merchant-accounts/0.6.0/V1.User)\n- [0.5.0](/php/docs/reference/shopping-merchant-accounts/0.5.0/V1.User)\n- [0.4.0](/php/docs/reference/shopping-merchant-accounts/0.4.0/V1.User)\n- [0.3.3](/php/docs/reference/shopping-merchant-accounts/0.3.3/V1.User)\n- [0.2.0](/php/docs/reference/shopping-merchant-accounts/0.2.0/V1.User)\n- [0.1.0](/php/docs/reference/shopping-merchant-accounts/0.1.0/V1.User) \nReference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class User.\n\nThe `User` message represents a user associated with a Merchant Center\naccount. It is used to manage user permissions and access rights within the\naccount. For more information, see [Frequently asked questions about people\nand access levels](//support.google.com/merchants/answer/12160472).\n\nGenerated from protobuf message `google.shopping.merchant.accounts.v1.User`\n\nNamespace\n---------\n\nGoogle \\\\ Shopping \\\\ Merchant \\\\ Accounts \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nIdentifier. The resource name of the user.\n\nFormat: `accounts/{account}/user/{email}`\nUse `me` to refer to your own email address, for example\n`accounts/{account}/users/me`.\n\n### setName\n\nIdentifier. The resource name of the user.\n\nFormat: `accounts/{account}/user/{email}`\nUse `me` to refer to your own email address, for example\n`accounts/{account}/users/me`.\n\n### getState\n\nOutput only. The state of the user.\n\n### setState\n\nOutput only. The state of the user.\n\n### getAccessRights\n\nRequired. The [access\nrights](https://support.google.com/merchants/answer/12160472?sjid=6789834943175119429-EU#accesstypes)\nthe user has.\n\n### setAccessRights\n\nRequired. The [access\nrights](https://support.google.com/merchants/answer/12160472?sjid=6789834943175119429-EU#accesstypes)\nthe user has."]]