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

Thanks a lot for your help

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,906)