web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Restrict the form Cont...
Finance forum

Restrict the form Control visibility based on Security role in D365 F&O

(0) ShareShare
ReportReport
Posted on by 65

Hi All,

I am working on D365 F&O.

I need to make the Form control visibility based on User Security role \ Privilege.  Can you please guide me how can we achieve this.

Thanks

Satish

Categories:
  • Raghu kanth Profile Picture
    Microsoft Employee on at

    Hi Satish.,

    Go to your form-> control-> Properties-> Needed Permission. Set this property to manual. (If not set, or you can change it in form extensions also).

    pastedimage1565787298415v1.png 

    Create a new  Security  Privilege -> Form Control Permissions-> Right click and select New Form -> Select your form in the drop down. 

    On the newly added form -> right click and select New Control -> open New Control  Properties, under Name drop down you were able to see the control. select the control and Set the permission under Grant. 

    pastedimage1565787353645v2.png

    Kind Regards.,

    Raghu kanth

  • Blue Wang Profile Picture
    Microsoft Employee on at

    Hi Satish,

    I agree with Raghu's solution.

    You can read this book to learn more. About Security Starts at page 183

    [View:https://books.google.co.jp/books?id=wnc5DwAAQBAJ&pg=PA186&lpg=PA186&dq=%22form+Control+Permissions%22+D365&source=bl&ots=CPi32D4diI&sig=ACfU3U1YFAf90YOQ3RmZItxzxyAdRl0y3Q&hl=en&sa=X&ved=2ahUKEwi1jOKm7YPkAhXzyYsBHaaeDJsQ6AEwDXoECAkQAQ#v=onepage&q&f=false:750:50]

  • Suggested answer
    Mahmoud Hakim Profile Picture
    17,887 on at

    if this control related to a field ,

    you can manage security easy as the below link

    community.dynamics.com/.../how-to-manage-security-field-in-dynamics-365

    if not related to a field, you must use Need permission property as Raghu mention  

  • SatishAX Profile Picture
    65 on at

    Thank you Raghu and all, for your help.

    I have done as per Raghu's suggestion. Mine is a unbound control with Boolean type.

    I have extended the standard object and changed the NeedPermission to Manual and created a new privilege and set the control Grant property as NoAccess. But this is throwing an error as below.

    [AxSecurityPrivilege/BHSVendorSearchRestriction/VendSearchCriterion/Controls/EmployeeThatAreVendors/Name]:The NeededPermission property of the 'EmployeeThatAreVendors' control in 'VendSearchCriterion' form  is set to 'None'. INC16186_2019 (CUS) [BHGSuite]K:\AosService\PackagesLocalDirectory\BHGSuite\BHGSuite\AxSecurityPrivilege\BHSVendorSearchRestriction.xml'

    But I tried this with Newly created control in Extended object, it is working. But not working on standard control.

    Can you please help me.

    Thanks

    Satish

  • Blue Wang Profile Picture
    Microsoft Employee on at
  • Raghu kanth Profile Picture
    Microsoft Employee on at

    Hi Satish.,

    Can you mention in which platform update you are. 

    If you are using platform update less than 29., issue exists. 

    As mentioned by Blue Wang there is a bug which was fixed in PU29. bug is community.dynamics.com/.../312011

    Please find the below link,as Microsoft has provided some temporary script, for a issue which is similar.

    https://community.dynamics.com/365/financeandoperations/f/dynamics-365-for-finance-and-operations-forum/312011/extending-form-control-neededpermission-property-set-privilege

    Kind Regards.,

    Raghu kanth

     

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans