Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

Unable to Restrict Role Visibility in Dynamics 365 Business Central

Posted on by 18

Hi All,

I need some assistance.

In Dynamics 365 Business Central, all roles are currently visible to all users. However, I want to configure it so that users can only see the role assigned to them, rather than all available roles.

Note: Navigate to Business Central -> Top right -> Gear icon -> My Settings -> Available Roles

Thanks,

Renjeesh.

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,565 Super User 2024 Season 2 on at
    Unable to Restrict Role Visibility in Dynamics 365 Business Central
    Hi, just use a variable to control the Editable property of this field.
    More details:
     
    Hope this helps as well.
    Thanks.
    ZHU
     
  • CU26090608-0 Profile Picture
    CU26090608-0 18 on at
    Unable to Restrict Role Visibility in Dynamics 365 Business Central
    Hi Khushbu,          

          Thank you so much! It is working, but it hides the field for all users. Is there a way we can make this work for specific users instead? The idea is to hide the field for some users but keep it visible for others, as we assign roles to users in the User Card or User Settings

    Thanks,
    Renjeesh.
  • CU26090608-0 Profile Picture
    CU26090608-0 18 on at
    Unable to Restrict Role Visibility in Dynamics 365 Business Central
    Hi Khushbu,
     
                   thank you so much it working but it hides the field of  all users is we can do this same concept by selected users
     
    Thanks,
    Renjeesh.
  • Verified answer
    Khushbu Rajvi. Profile Picture
    Khushbu Rajvi. 4,553 on at
    Unable to Restrict Role Visibility in Dynamics 365 Business Central

    Hi Rajneesh,

    Instead of doing it personalized/design for each sandbox and each user, it would be better to implement it through coding. We can modify the user settings page as outlined below.

     
     
    O/p:
     
    Regards,
    Khushbu Rajvi
  • CU26090608-0 Profile Picture
    CU26090608-0 18 on at
    Unable to Restrict Role Visibility in Dynamics 365 Business Central
    Hi Umut Dogan Koc,
     
              Are there any documents or tutorials available for learning AL Language and Business Central action code, tables, models, fields, and layout? Any resources would be helpful.
     
    Thank you,
    Renjeesh
  • CU26090608-0 Profile Picture
    CU26090608-0 18 on at
    Unable to Restrict Role Visibility in Dynamics 365 Business Central

    Hi Umut Dogan Koc,

                      Could you please provide some guidance on how I can achieve this? Your assistance would be greatly appreciated.

    Thank you,
    Renjeesh

  • Umut Dogan Koc Profile Picture
    Umut Dogan Koc 87 on at
    Unable to Restrict Role Visibility in Dynamics 365 Business Central
    Hi Renjeesh,
     
    Yes, you can hide three-dot so users can't reach list of the profiles, but they only can see their existing role.
     
    But that option requires a little development.

    Best Regards.
  • CU26090608-0 Profile Picture
    CU26090608-0 18 on at
    Unable to Restrict Role Visibility in Dynamics 365 Business Central
           Thank you so much for your answer is we can hide only the three-dot from the field means edit box ?

    thanks,
    Renjeesh.
  • Suggested answer
    Umut Dogan Koc Profile Picture
    Umut Dogan Koc 87 on at
    Unable to Restrict Role Visibility in Dynamics 365 Business Central
    Hello,
     
    You can hide Role field completely for each profile by customizing profile pages. 
     
    Search => Profiles(Roles) => Customize Pages (On Navigation Bar). Then a new window will be opened in design mode. Then you can hide role field for that profile. This can be done for each profie.
     
     
    Additionally, this can be done by extending  page 9204 User Settings in AL , modifiying (UserRoleCenter):
     
     layout
        {
            modify(UserRoleCenter)
            {
                AssistEdit = false;
            }
        }
     
    This disables assistedit feature means that three dots will be disappeared from the page so roles can't be navigated.

    Best Regards.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans