Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

How to create security privileges at form's tabpage level ?

(0) ShareShare
ReportReport
Posted on by

Hi guys,

May I know how to create security privileges at the form's tabpage level, in Visual Studio ?

For example, I have new TabPage in form SystemParameters, and I want to create Privileges so my user can only have access to this TabPage only to edit. 

pastedimage1684293993806v1.png

Thanks.

  • Mohit Rampal Profile Picture
    Mohit Rampal 12,552 Super User 2024 Season 1 on at
    RE: How to create security privileges at form's tabpage level ?

    Extensions are used to extend the standard objects and we can't refer extended objects like Form extension in a Security privilege, compiler will throw error.

    I have observed usage of object extension directly only when adding form control for display method in table extension class.

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: How to create security privileges at form's tabpage level ?

    You need to specify the original form name only. Not the extended form.

    If you set the Needed permission to manual, you need to manually add that tab page to all the security privilege you want the access to.

    Thanks,

    Girish S.

  • VoltesDev Profile Picture
    VoltesDev on at
    RE: How to create security privileges at form's tabpage level ?

    Hi,

    sorry just one last question though, if I extend a standard form, lets say that SystemParameters because I also want to change the "NeededPermission" of its existing TabPage to "Manual", will that change the needs of assigning permission of other standard privileges ? Since I notice when I put the form component to NeedPermission to manual, and in my privileges haven't specified any permission, it will throw error.

    But I also notice in security privilege, form control permission, when add new form, we cannot specified the form name with the extension, but the original only.

    Thanks

  • VoltesDev Profile Picture
    VoltesDev on at
    RE: How to create security privileges at form's tabpage level ?

    Thank you both.

  • Verified answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: How to create security privileges at form's tabpage level ?

    Hi Voltes,

    You can refer to standard HcmWorker form >> Main tab >>Details panel >> TOC tab >. EmploymentTabPage >> where they have implemented tab page level security. You need to set the Needed permission property of the tab page to manual - And then under your custom security privilege you can add that control under form control permissions.

    You can refer to standard HcmWorkerEdit privielge.

    Thanks,

    Girish S.

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,552 Super User 2024 Season 1 on at
    RE: How to create security privileges at form's tabpage level ?

    Hi, You can change NeededPermission property of this tabpage to 'Manual' and create security privileges.

    Please check this article written by Andre Arnaud de Calavon 

    dynamicspedia.com/.../

    pastedimage1684295614341v1.png

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 Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,836 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans