Checking Roles on Menu Items
Application Type

I'm trying to check roles on the Menu items on the top but when I enclose it in an IF I'm not seeing the the roles in conditions.



So what I use to check roles is using a data action. where inside you can return if the user logged has a role or not

Inside of the data action, you can use the role actions to see if the user has the role or not :)

Then you just need to assign to the output variable of the data action if the user has a role or not

Don't forget that the action that checks the role needs the id of the User

then you can use the output of the data action :)

Kind Regards,


Hi @Anna Dwarika,

You cannot check the role in the client (If) widget. Instead, you have to fetch boolean value (UserHasParticularRoleAccess?) in  data action or oninitialize action.

Server action only will have checkrole function

Refer this also :

Thanks, Aadhavan S

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.