ToolJet provides several **exposed variables** that can be accessed within components and queries. One of these exposed variables is globals, which provides access to the currently logged-in user’s information at globals.currentUser.
## Example: Disable a Button if the User Is Not an Admin
In this example, we'll disable the *Add new item* button for the users who are not a part of the *admin* group.
1.**Click on the **Button** handle to open its properties and go to the **Disable** property**
<imgclassName="screenshot-full"src="/img/how-to/access-currentuser/v2/button.png"alt="Properties of button"/>
2.**Configure the Disable Property**
Set the Disable field to check whether the user belongs to the admin group. If the user is not part of the admin group, the button will be disabled. You can use the following code.