cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Arioule
Helper III
Helper III

How to make sections (or fields) of a Entity Main Form only visible (or editable) for specific users (or specific security roles)

Hi,

 

I have created a Entity Main Form with 3 different sections : Employee, HR and IT sections.
I have also created a Business Process Flow associated to my Entity with 3 Stages that will help to gradually fill in the form.
I would like first the employee to fill in the Employee Section, then HR to fill in its dedicated section and finally IT to complete the form through the implemented Business Process Flow.

Also, I would like the Employee, HR and IT to be the only ones to be able to see (or to edit) their dedicated section.

 

How can I achieve this ?

 

Thanks,

 

Arioule

1 ACCEPTED SOLUTION

Accepted Solutions
HSheild
Super User
Super User

Hi @Arioule 

 

There are multiple ways you could achieve this but what I would do is create a different form for each of the different user roles and assign security roles to those forms.  That way, when a user with a particular role opens the record they only see the form that is relevant to them.  If you keep it as one form like you have at the moment then you are going to need JavaScript and some custom logic to show and hide the sections based on some parameter of the user.  I would avoid this.

 

As for the business process flow.  A user can either see the entire business process flow or not see it.  You can't hide sections of a business process flow.  What you could do is use Field Security to hide the details of fields that each role should not see, but this is a lot of work and maintenance.  If you went with the 1 form per user role then I question the need to have a business process flow.  Business process flows are designed to guide a user through the steps of a process whereas in your situation each user is just doing 1 part of the process and sounds like they do not need to know about the other steps.

 

Hope this helps

View solution in original post

2 REPLIES 2
HSheild
Super User
Super User

Hi @Arioule 

 

There are multiple ways you could achieve this but what I would do is create a different form for each of the different user roles and assign security roles to those forms.  That way, when a user with a particular role opens the record they only see the form that is relevant to them.  If you keep it as one form like you have at the moment then you are going to need JavaScript and some custom logic to show and hide the sections based on some parameter of the user.  I would avoid this.

 

As for the business process flow.  A user can either see the entire business process flow or not see it.  You can't hide sections of a business process flow.  What you could do is use Field Security to hide the details of fields that each role should not see, but this is a lot of work and maintenance.  If you went with the 1 form per user role then I question the need to have a business process flow.  Business process flows are designed to guide a user through the steps of a process whereas in your situation each user is just doing 1 part of the process and sounds like they do not need to know about the other steps.

 

Hope this helps

View solution in original post

Thanks a lot for your help

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,313)