Skip to content

Commit b7af219

Browse files
committed
docs: userAttributes shortcut syntax
1 parent 4f9ccba commit b7af219

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

docs/pages/product/administration/users-and-permissions/user-attributes.mdx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,9 @@ views:
3535
filters:
3636
- member: customers_city
3737
operator: equals
38-
values: ["{ securityContext.cubeCloud.userAttributes.city }"]
38+
values: ["{ userAttributes.city }"]
3939
```
4040
4141
## Effect on Queries
4242
43-
When the access policy is implemented, queries will automatically be filtered based on the user's attributes. This ensures users can only access data that matches their attribute values.
44-
45-
<InfoBox>
46-
The path to access user attributes (securityContext.cubeCloud.userAttributes) will be simplified in future updates to allow direct access through user attributes.
47-
</InfoBox>
43+
When the access policy is implemented, queries will automatically be filtered based on the user's attributes. This ensures users can only access data that matches their attribute values.

docs/pages/product/apis-integrations/chat-api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ User attributes must first be configured in your Cube admin panel before they ca
9797
- Limit financial data based on user's department
9898
- Personalize dashboards by user role
9999

100-
The attributes passed during session generation become available in the security context as `securityContext.cubeCloud.userAttributes.{attributeName}` for use in access policies.
100+
The attributes passed during session generation become available as `userAttributes.{attributeName}` for use in access policies.
101101

102102
## Endpoint Reference
103103

0 commit comments

Comments
 (0)