Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / String Control Field P...
Finance forum

String Control Field Properties - Needed Permission

(0) ShareShare
ReportReport
Posted on by

Hi all,

I found out that there is one option from Field Properties named "Needed Permission". Which we can set the value and control by Security Privileges and assign to User Role.

However, there is no way to change the value after I create the Form Extension in PU15 with 8.0.

Is there any way I can set the value through X++ coding?

Regards,

Wilson Chua

  • Retha Profile Picture
    1,439 on at
    RE: String Control Field Properties - Needed Permission

    We have decided seeing that we cannot extend the NeededPermission property we will create a custom table with form control names in it and then on Initialized of a form look the control up in this table and if it is there, then depending on the flag associated with it, enable or disable it

  • Retha Profile Picture
    1,439 on at
    RE: String Control Field Properties - Needed Permission

    I wanted to use the same logic in SalesTable but noticed that the extension has the neededPermission greyed out.

    In SalesTable, header and line, we do not want all users to be able to change the default taxGroup assigned when the record is created. We make use of an ISV for taxes and we have custom that if the delivery term is customer pick-up then it will automatically assign a taxgroup to the header/line, else it will take the default in the ISV setup.

    The neededPermission field would have allowed me to add privileges to the control to assign it to roles for those who can change it manuall and those who can't.

    We also found this link: community.dynamics.com/.../role-base-field-level-security-dynamics-ax-2012-amp-d365

    However the above is on the table itself. If I set the taxGroup on SalesTable and SalesLine to Read-access for that privilege that is for the role that should not be able to change the default, then it will not write the default value to the DB because the user has only read access to that field on the table.

    So how can I assign security  to a control in the form? I cannot set the standard control visible = No and add a custom field because the taxGroup field is used by the ISV software as well.

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    293,278 Super User 2025 Season 1 on at
    RE: D365FO String Control Field Properties - Needed Permission

    Hi Wilson,

    You can set field permissions using the table permissions. If you really need to change the needed permission, you can set the Visible property to 'No' and add a copy of the element where you can set your own NeededPermission as workaround. This will probably not always work in case there is some x++ coding which is managing the behavior of the form control.

  • Community Member Profile Picture
    on at
    RE: D365FO String Control Field Properties - Needed Permission

    Hi Andre,

    We are trying to use the Needed permission to hide some of field value from Certain User Role. I know that this can be done under 7.3 and below version because we are able to customize the User Form. However, in Update 15, there is no way to customize the User Form anymore. So I wish to know any alternate way to do the Needed Permission control.

    Best Regards,

    Wilson Chua

  • André Arnaud de Calavon Profile Picture
    293,278 Super User 2025 Season 1 on at
    RE: D365FO String Control Field Properties - Needed Permission

    Hi Wilson,

    This property cannot be changed using x++ coding. You need to work with privileges to grant access for users. What is the exact scenario you want to achieve?

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,278 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,002 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans