Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Unanswered

Update Date filed value by specific Role

(0) ShareShare
ReportReport
Posted on by 180

Hello,

 

How to make sure Opsdate filed modified by SecurityRoleA users?

 

if user assigned SecurityRoleA the should be able to modify Opsdate filed other it will be disabled.

 

Thanks,

  • a33ik Profile Picture
    3,304 Most Valuable Professional on at
    Re: Update Date filed value by specific Role

    @Fubar I get that but I replied to the question that the topic starter asked, quoting:


    @Shafdev wrote:

    Hello,

     

    How to make sure Opsdate filed modified by SecurityRoleA users?

     

    if user assigned SecurityRoleA the should be able to modify Opsdate filed other it will be disabled.

     

    Thanks,


    Personally, I do agree that FLS is a more efficient way to achieve the scenario but sometimes we're working with customers that are not that flexible and if they need "role" - "fls" is not taken to the final decision.

  • Fubar Profile Picture
    7,894 Super User 2025 Season 1 on at
    Re: Update Date filed value by specific Role

    @a33ik wrote:

    Hello,

    If your requirement is to allow editing specifically for a particular role - then:

    • create a JavaScript that will check if the user has the particular role and enable the field (that should be disabled by default);
    • develop a sync plugin or real-time workflow that will check if the user that performed the change of the field has the predefined role and throw an exception to prevent the changes if the user doesn't.

    In most cases writing custom code for this would be overkill when you could just assign the Security Role and Field Level Security Profile to a Team and assign the users in question to the Team.

     

    The FLS Profile also has the added benefit of being able to specify if the field can be read (user will see a masked field if they do not have permission to view it) and applies to views, forms, API calls.

  • a33ik Profile Picture
    3,304 Most Valuable Professional on at
    Re: Update Date filed value by specific Role

    Hello,

    If your requirement is to allow editing specifically for a particular role - then:

    • create a JavaScript that will check if the user has the particular role and enable the field (that should be disabled by default);
    • develop a sync plugin or real-time workflow that will check if the user that performed the change of the field has the predefined role and throw an exception to prevent the changes if the user doesn't.
  • Mira Ghaly Profile Picture
    11,409 Super User 2025 Season 1 on at
    Re: Update Date filed value by specific Role

    @Shafdev 

    You will need to use Field Level security alongside security roles if the user can edit the record but not just the field.

    https://learn.microsoft.com/en-us/power-platform/admin/field-level-security

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 17

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics