A list of features unlocked with Personalization
user
variable to access the information you have sent to your docs. Here’s a simple example:
Hello, !
user
is only available after a user has logged in. For
logged out users, the value of user
will be {}
. To prevent the page from
crashing for logged-out users, always use optional chaining on your user
fields, e.g. {user.org?.plan}
groups
field in your page metadata.
When determining which pages to show to the user, Mintlify will check which groups the user belongs to.
If the user is not in any of the groups listed in the page metadata, the page will not be shown.
groups
in User and page metadata:
groups not in User | groups: [] in User | groups: ['admin'] in User | |
---|---|---|---|
groups not in metadata | ✅ | ✅ | ✅ |
groups: [] in metadata | ❌ | ❌ | ❌ |
groups: ['admin'] in metadata | ❌ | ❌ | ✅ |