docs/versioned_docs/version-2.6.0/how-to/access-users-groups.md
Let's take look at the exposed variables of the current user property:
{{globals.currentUser.email}}{{globals.currentUser.firstName}}{{globals.currentUser.lastName}}{{globals.currentUser.lastName}}all_users and admin, and any user who is not admin will always be in the all_users group by default. Since the groups is an array you’ll have to provide the index ([0], [1], and so on) to return the group name. The value can be accessed using {{globals.currentUser.groups[1]}}.Click on the Button handle to open its properties, on the Styles tab go to the Disable property.
<div style={{textAlign: 'center'}}> </div>Set a condition on the Disable field so that if the the user who is using the app does not have admin value in the first index of groups array return true. The condition can be:
{{globals.currentUser.groups[1] !== "admin" ? true : false}}
Now, when you'll release the app, if the user is not is not admin the button will be disabled.
<div style={{textAlign: 'center'}}> </div>:::info In this how-to we have used the Groups property of the Current User. You can use any of the exposed variables mentioned above according to your use. :::