
Use user attributes to define data access, filter content, and more
Requirements
Organization Admin permissions are required to create and modify user attributes, including assigning them to users.Creating user attributes
- Omni UI
- API
- Name: The name of the user attribute, how it will be displayed in the UI
- Reference: How the attribute will be referenced in code, such as in the model
- Type: Used to check that valid values are assigned to users. String and Number data types are allowed.
- Multiple values: Specifies whether multiple values can be assigned to a user for this attribute
- Description: Explanation of the attribute or how it will be used
- Default value: Optional. Set a default value that all users will inherit if a value is not directly assigned to them.
Assigning attributes to users
- Navigate to Settings > Attributes.
- Click the attribute you want to set.
- In the attribute’s page, click the Users tab.
-
In the list of users, locate the user you want to work with. Use the toggles above the table to filter the list by:
- Click the Edit value button in user’s row.
- In the dialog that displays, enter the value for the user.
- Click Save.
- when the user has the default value and User setting when a value is set for the user.
Default system user attributes
userAttributes parameter.Click this attribute in Settings > Attributes to open the configuration page for the attribute. See Managing AI credit usage for full details on configuring per-user credit limits.true, the user can create, save, or move content in their personal My documents folder. When false, My documents is hidden in the sidebar and content operations default to the organization scope. Controlled with the Personal content access setting in each user’s settings page.true, the split-view AI chat panel opens on the right side of the screen with the document or dashboard on the left. When false, the chat panel opens on the left.Use this attribute to set the behavior for embed users or a default for your users. Individual users can update their preference with the Chat panel on the right setting in their account settings.@ in the From address on deliveries and alerts sent to this user. Falls back to the organization’s saved custom sender when unset. Not shown or settable for embed users.Set this value on the user’s settings page.true, the user is an Organization Admin.Blobs R UsBlob Sales, Blob Marketing91abbe19-b0de-4537-bc62-cec1d95420c9Blob Ross or Blobby PartonUTC or America/Los_AngelesCommon questions
Can I use user attributes to control data access?
Can I use user attributes to control data access?
-
Access filters, which allow you to restrict the rows of data a user can access within a topic. Access filters apply the values assigned on a user attribute to the
WHEREclause of every SQL query a user runs, filtering out to only the data designated to that user:Filter by brand_name -
Access grants, which define topic- and field-level permissions. Omni will map a user’s attribute value to a corresponding allowed value and determine if the user has the necessary permissions to access that topic or field:
Grant access for user group
-
Fields. User attributes can be referenced in fields using Mustache syntax, for example:
{{ omni_attributes.<attribute-name> }}. This construct can be used to:- Provide conditional access to a field, or
-
To hash a field based on a user attribute. This can be done by using a
CASEstatement in the SQL definition for a field. For example, the followingname_hiddenandname_hashedexamples demonstrate how to use user attributes to hide or hash a name field as an alternative to using access grants to remove access entirely:Hide or hash field based on user attribute
Can I use user attributes to dynamically change database connections?
Can I use user attributes to dynamically change database connections?
Can I use user attributes to route users to tenant-specific models?
Can I use user attributes to route users to tenant-specific models?
dynamic_shared_extensions parameter that links user attribute values to specific extensions.Can I use user attributes to create dynamic content?
Can I use user attributes to create dynamic content?
- Dashboard Markdown tiles. You can use user attributes in dashboard Markdown tiles with Mustache syntax. For example,
{{metadata.userAttributes.<user_attribute>.values}}would return the value of the specified user attribute. - Dashboard deliveries. User attributes can be used to personalize deliveries, including messages (where supported) and the data included in the delivery.
Can I assign user attributes to email-only users?
Can I assign user attributes to email-only users?

Does Omni have any system (default) user attributes?
Does Omni have any system (default) user attributes?
Can users switch their own attribute value?
Can users switch their own attribute value?
Next steps
- User-selected attribute values - Let users switch their own attribute value
- Dynamic connection environments - Route users to a connection environment based on an attribute value
- User groups - Assign attributes and permissions to multiple users at once

