Hi all!
I am creating a model-driven app in which I need to hide the top Navigation bar for the user that is based on role-based
like example: If there are two users, A and B
A has an Admin role, meaning he can add or edit items in the application from the option in the Top Navigation bar.
B has a normal user role. He can only see the items in the application.
How do I do this? Could someone explain if there are any steps for this?
That's correct. The buttons in the command bar (top navigation bar) are visible based on the permission in the security role assigned to the user.
If the two roles have the same permission, you may create one and assign it to both users. e.g. if both "Record Agency Officer" and "Record Lia Officer" only have read access to the record, you may create only one role such as "Record Reader" role.
So here the actual issue is I need to set up the instruction or rules for each role like "Record Administrator", "Record Agency Officer" and "Record Lia Officer" and there are so many roles that I am creating.
So I need to customize the navigation bar for each role that has.
Like The administrator accounts have the option to edit and others have view and some other role have only to delete.
So you mean that I can write the permission in the dataverse table for each role to customize the Navigation tab?
For Admin Role to be able to add or edit the items, you can provide Create, Read, Write permissions for that particular table.
Then to only allow read-only for the normal user role, you need to provide Read permission for that particular table.
It needs to be configured properly for all the tables that you want to restrict the permission.
Please refer to the resources in the links below
MS.Ragavendar
32
Michael E. Gernaey
19
Super User 2025 Season 1
WarrenBelz
18
Most Valuable Professional