Fetch current user

I am writing a TS function to control tabs using a string variable. For that I need to fetch the current logged in user and check in which user group he/she is. Based on this, I need to return the tab name. In the Users object, there is no method to get the current user. What is the best way to achieve this whole scenario?

create a variable String Array and select attribute as “Group IDs”
You will have list of all the group ids user is assigned. (Image below)

Then again create a Boolean variable with variable transformation to perform the comparison to get true false… or if you want to return tab name then create string variable (variable transformation / typescript function) whatever you find suitable.