How To create security role in dynamics 365?

In dynamics 365, security hierocracy is similar to AX 2012  as shown below


you can assign multiple roles for a user and every role contain multiple duties and privileges..etc

Now, we will create a role from scratch

Create project in visual studio and select Dynamics 365 template

select unified operation and assign a name for your project


just add a new item \ security\security privilege


privilege contain multiple securable objects like forms, SSRS report, class,..etc

So, we will create a new entry point

 I will create security for custtablelistpage (All Customers Form)

as shown below we have multiple types for object

1-menu item display: for forms 
2-menu item output: for Reports
3-menu item action: for classes
4-service operation: for services 

set access level as you need (unset -no access -read -update-create-correct-delete) 

as the same, we will create a new duty 
add you privileges to your duty 



As the same, create new role,
note: you can add any  role as a sub role , also you can add privileges and duties to your role

 build your solution and deploy
finally, go to users form and edit your user to assign the new role.

Comments

Post a Comment