Stay organized with collections
Save and categorize content based on your preferences.
Version 4.0.25.14 (latest)
Define values for a user attribute across a set of groups, in priority order.
This function defines all values for a user attribute defined by user groups. This is a global setting, potentially affecting
all users in the system. This function replaces any existing group value definitions for the indicated user attribute.
The value of a user attribute for a given user is determined by searching the following locations, in this order:
the user's account settings
the groups that the user is a member of
the default value of the user attribute, if any
The user may be a member of multiple groups which define different values for that user attribute. The order of items in the group_values parameter
determines which group takes priority for that user. Lowest array index wins.
An alternate method to indicate the selection precedence of group-values is to assign numbers to the 'rank' property of each
group-value object in the array. Lowest 'rank' value wins. If you use this technique, you must assign a
rank value to every group-value object in the array.
[[["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-08-20 UTC."],[],[],null,["# Set User Attribute Group Values\n\nVersion 4.0.25.14 (latest)\n\n### Define values for a user attribute across a set of groups, in priority order.\n\nThis function defines all values for a user attribute defined by user groups. This is a global setting, potentially affecting\nall users in the system. This function replaces any existing group value definitions for the indicated user attribute.\n\nThe value of a user attribute for a given user is determined by searching the following locations, in this order:\n\n1. the user's account settings\n2. the groups that the user is a member of\n3. the default value of the user attribute, if any\n\nThe user may be a member of multiple groups which define different values for that user attribute. The order of items in the group_values parameter\ndetermines which group takes priority for that user. Lowest array index wins.\n\nAn alternate method to indicate the selection precedence of group-values is to assign numbers to the 'rank' property of each\ngroup-value object in the array. Lowest 'rank' value wins. If you use this technique, you must assign a\nrank value to every group-value object in the array.\n\nTo set a user attribute value for a single user, see [Set User Attribute User Value](/looker/docs/reference/looker-api/latest/methods/User/set_user_attribute_user_value).\nTo set a user attribute value for all members of a group, see [Set User Attribute Group Value](/looker/docs/reference/looker-api/latest/methods/Group/update_user_attribute_group_value).\n\nRequest\n-------\n\nPOST /user_attributes/{user_attribute_id}/group_values \nDatatype \nDescription \nRequest \nHTTP Request \npath \nHTTP Path \nExpand HTTP Path definition... \nuser_attribute_id \nstring \nId of user attribute \nbody \nHTTP Body \nExpand HTTP Body definition... \nbody \n[UserAttributeGroupValue](/looker/docs/reference/looker-api/latest/types/UserAttributeGroupValue)\\[\\] \nExpand UserAttributeGroupValue definition... \ncan \n*lock* \nobject \nOperations the current user is able to perform on this object \nid \n*lock* \nstring \nUnique Id of this group-attribute relation \ngroup_id \n*lock* \nstring \nId of group \nuser_attribute_id \n*lock* \nstring \nId of user attribute \nvalue_is_hidden \n*lock* \nboolean \nIf true, the \"value\" field will be null, because the attribute settings block access to this value \nrank \n*lock* \ninteger \nPrecedence for resolving value for user \nvalue \n*lock* \nstring \nValue of user attribute for group\n\nResponse\n--------\n\n### 200: Array of group values.\n\nDatatype \nDescription \n(array) \n[UserAttributeGroupValue](/looker/docs/reference/looker-api/latest/types/UserAttributeGroupValue)\\[\\] \ncan \n*lock* \nobject \nOperations the current user is able to perform on this object \nid \n*lock* \nstring \nUnique Id of this group-attribute relation \ngroup_id \n*lock* \nstring \nId of group \nuser_attribute_id \n*lock* \nstring \nId of user attribute \nvalue_is_hidden \n*lock* \nboolean \nIf true, the \"value\" field will be null, because the attribute settings block access to this value \nrank \n*lock* \ninteger \nPrecedence for resolving value for user \nvalue \n*lock* \nstring \nValue of user attribute for group\n\n### 400: Bad Request\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 404: Not Found\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 409: Resource Already Exists\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 422: Validation Error\n\nDatatype \nDescription \n(object) \n[ValidationError](/looker/docs/reference/looker-api/latest/types/ValidationError) \nmessage \n*lock* \nstring \nError details \nerrors \n[ValidationErrorDetail](/looker/docs/reference/looker-api/latest/types/ValidationErrorDetail)\\[\\] \nExpand ValidationErrorDetail definition... \nfield \n*lock* \nstring \nField with error \ncode \n*lock* \nstring \nError code \nmessage \n*lock* \nstring \nError info message \ndocumentation_url \n*lock* \nstring \nDocumentation link \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 429: Too Many Requests\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link"]]