Stay organized with collections
Save and categorize content based on your preferences.
Version 4.0.25.14 (latest)
Get user attribute values for a given user.
Returns the values of specified user attributes (or all user attributes) for a certain user.
A value for each user attribute is searched for in the following locations, in this order:
in the user's account information
in groups that the user is a member of
the default value of the user attribute
If more than one group has a value defined for a user attribute, the group with the lowest rank wins.
The response will only include user attributes for which values were found. Use include_unset=true to include
empty records for user attributes with no value.
The value of all hidden user attributes will be blank.
Request
GET
/users/{user_id}/attribute_values
Datatype
Description
Request
HTTP Request
path
HTTP Path
Expand HTTP Path definition...
user_id
string
Id of user
query
HTTP Query
Expand HTTP Query definition...
fields
string
Requested fields.
user_attribute_ids
string[]
all_values
boolean
If true, returns all values in the search path instead of just the first value found. Useful for debugging group precedence.
include_unset
boolean
If true, returns an empty record for each requested attribute that has no user, group, or default value.
[[["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,["# Get User Attribute Values\n\nVersion 4.0.25.14 (latest)\n\n### Get user attribute values for a given user.\n\nReturns the values of specified user attributes (or all user attributes) for a certain user.\n\nA value for each user attribute is searched for in the following locations, in this order:\n\n1. in the user's account information\n2. in groups that the user is a member of\n3. the default value of the user attribute\n\nIf more than one group has a value defined for a user attribute, the group with the lowest rank wins.\n\nThe response will only include user attributes for which values were found. Use `include_unset=true` to include\nempty records for user attributes with no value.\n\nThe value of all hidden user attributes will be blank.\n\nRequest\n-------\n\nGET /users/{user_id}/attribute_values \nDatatype \nDescription \nRequest \nHTTP Request \npath \nHTTP Path \nExpand HTTP Path definition... \nuser_id \nstring \nId of user \nquery \nHTTP Query \nExpand HTTP Query definition... \nfields \nstring \nRequested fields. \nuser_attribute_ids \nstring\\[\\] \nall_values \nboolean \nIf true, returns all values in the search path instead of just the first value found. Useful for debugging group precedence. \ninclude_unset \nboolean \nIf true, returns an empty record for each requested attribute that has no user, group, or default value.\n\nResponse\n--------\n\n### 200: Value of user attribute.\n\nDatatype \nDescription \n(array) \n[UserAttributeWithValue](/looker/docs/reference/looker-api/latest/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### 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### 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\n\nExamples\n--------\n\n### TypeScript"]]