Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Customer permission on form by Group

(0) ShareShare
ReportReport
Posted on by

Hi,

I am new to Dynamic AX and trying to figured out something about permission.

I am using AX Dynamics 2009. Now a customer asked me to restrict access to a form for specific group allow them to see only specific fields.

Using User Group permission I restricted access to the table field and indeed they are not visible anymore but I have some issues:

1)The label are still there and I cannot find a way to hide these only to the specific group so what is left on the form is all messed up.

2) One of the field is not populated directly from a table but call a function/method like this:

display Name namex()
{
return name_active.namex;
}

How can I restrict access to this? From user group permission I cannot see this function and I cannot figured out how to do it through AOT.

Hope this was clear enough.

Any help would be appreciated.

Regards

Federico

*This post is locked for comments

  • Community Member Profile Picture
    on at
    RE: Customer permission on form by Group

    Hi,

    sorry yes you are right my bad. Looks the right way to go Thanks.

    You have been very helpful.

    Federico

  • Verified answer
    Martin Dráb Profile Picture
    233,704 Most Valuable Professional on at
    RE: Customer permission on form by Group

    No, that's not true. It was the same even in AX 3.0 ten years ago.

  • Community Member Profile Picture
    on at
    RE: Customer permission on form by Group

    Hi,

    thanks for you answer. Unfortunately the property above apply to AX 2012 and above.

    Do you know if this is possible in AX 2009 too?

    Thanks

    Federico

  • Verified answer
    Martin Dráb Profile Picture
    233,704 Most Valuable Professional on at
    RE: Customer permission on form by Group

    Yes, it seems that your problem is caused by incorrect implementation. Your text control naturally doesn't care that some other control is hidden; it will be always displayed.

    You should delete text controls and set labels to the Label property of the bound controls. Note that labels defined on table fields or the EDTs are used automatically, unless overriden.

    Also ensure yourself that ShowLabel is set to Yes.

    Open any form in AX and you'll see it uses this approach instead of separate controls just for labels.

  • Community Member Profile Picture
    on at
    RE: Customer permission on form by Group

    Hi,

    I am not sure what you mean about that but for what was  I able to understand from the form setup layout, was that the Text seems to be independent and no bound to the field.

    I am not the one who developed the form this was done from someone else.

    when you said bounding the setting of the label property to the control would that mean that deny access to the control field would also make the text disappear?

    Federico

  • Martin Dráb Profile Picture
    233,704 Most Valuable Professional on at
    RE: Customer permission on form by Group

    That's not the usual and expected behavior. Didn't you add labels as separate static text controls, instead of just settings the Label property of the controls bound to fields?

  • Community Member Profile Picture
    on at
    RE: Customer permission on form by Group

    The Form display a certain numbers of information:

    eg:

    Rent:   value                           Rent4: Display Method

    Rent2: Value2

    Rent3: Value3

    Now I want the group to be able to see only Rent3, through user group permission I restricted access and I have this situation:

    Rent:   value3      Rent4: Display Method

    Rent2:

    Rent3:

    So the values disappear but the name of the field the static text is still there

    Federico

  • Martin Dráb Profile Picture
    233,704 Most Valuable Professional on at
    RE: Customer permission on form by Group

    1. The label of what and where?
    2. You can't set permissions on display methods. But you can hide the control in code if certain conditions are met (e.g. that the user doesn't have permissions to read the underlying field).

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!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 48

#3
Zain Mehmood Profile Picture

Zain Mehmood 6 Moderator

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans