[[["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 User Value\n\nVersion 4.0.25.10\n| **Note:** These docs are for an older version of the API. The API reference is also available for [the latest version, 4.0.25.14](/looker/docs/reference/looker-api/latest).\n\n### Store a custom value for a user attribute in a user's account settings.\n\nPer-user user attribute values take precedence over group or default values.\n\nRequest\n-------\n\nPATCH /users/{user_id}/attribute_values/{user_attribute_id} \nDatatype \nDescription \nRequest \nHTTP Request \npath \nHTTP Path \nExpand HTTP Path definition... \nuser_id \nstring \nId of user \nuser_attribute_id \nstring \nId of user attribute \nbody \nHTTP Body \nExpand HTTP Body definition... \nbody \n[UserAttributeWithValue](/looker/docs/reference/looker-api/4.0/25.10/types/UserAttributeWithValue) \nNew attribute value for user.\nExpand UserAttributeWithValue definition... \ncan \n*lock* \nobject \nOperations the current user is able to perform on this object \nname \n*lock* \nstring \nName of user attribute \nlabel \n*lock* \nstring \nHuman-friendly label for user attribute \nrank \n*lock* \ninteger \nPrecedence for setting value on user (lowest wins) \nvalue \nstring \nValue of attribute for user \nuser_id \n*lock* \nstring \nId of User \nuser_can_edit \n*lock* \nboolean \nCan the user set this value \nvalue_is_hidden \n*lock* \nboolean \nIf true, the \"value\" field will be null, because the attribute settings block access to this value \nuser_attribute_id \n*lock* \nstring \nId of User Attribute \nsource \n*lock* \nstring \nHow user got this value for this attribute \nhidden_value_domain_whitelist \n*lock* \nstring \nIf this user attribute is hidden, allowed list of destinations to which it may be sent.\n\nResponse\n--------\n\n### 200: User attribute value.\n\nDatatype \nDescription \n(object) \n[UserAttributeWithValue](/looker/docs/reference/looker-api/4.0/25.10/types/UserAttributeWithValue) \ncan \n*lock* \nobject \nOperations the current user is able to perform on this object \nname \n*lock* \nstring \nName of user attribute \nlabel \n*lock* \nstring \nHuman-friendly label for user attribute \nrank \n*lock* \ninteger \nPrecedence for setting value on user (lowest wins) \nvalue \nstring \nValue of attribute for user \nuser_id \n*lock* \nstring \nId of User \nuser_can_edit \n*lock* \nboolean \nCan the user set this value \nvalue_is_hidden \n*lock* \nboolean \nIf true, the \"value\" field will be null, because the attribute settings block access to this value \nuser_attribute_id \n*lock* \nstring \nId of User Attribute \nsource \n*lock* \nstring \nHow user got this value for this attribute \nhidden_value_domain_whitelist \n*lock* \nstring \nIf this user attribute is hidden, allowed list of destinations to which it may be sent.\n\n### 400: Bad Request\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/4.0/25.10/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 403: Permission Denied\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/4.0/25.10/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/4.0/25.10/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/4.0/25.10/types/ValidationError) \nmessage \n*lock* \nstring \nError details \nerrors \n[ValidationErrorDetail](/looker/docs/reference/looker-api/4.0/25.10/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/4.0/25.10/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link"]]