Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Hide Custom HTML Webpage from Specific Users

Posted on by 140

Hello, I was wondering if you guys would be the best way to hide an HTML webpage from specific users. Since the webpage is not out of the box how could we achive this 

  • Verified answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Hide Custom HTML Webpage from Specific Users

    Please refer this post, this should help you

    www.inogic.com/.../

    let me know if you still not clear

  • msboy Profile Picture
    msboy 140 on at
    RE: Hide Custom HTML Webpage from Specific Users

    I am still confused

  • Suggested answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Hide Custom HTML Webpage from Specific Users

    Hi,

    In navigation you can't use security role instead use specific entity permissions, and then refer this entity to control the navigation.

    You can include this entity under the specific roles for which you have to show/hide navigation.

    For example let's say you created entity called UINavigationControl, and now on your sitemap you have using Create permission for this entity to hide/show particular subarea, If you want to show this navigation to particular security role, add create permission for this entity, so all the users who have this security role will be able to see it.

    And for those security role you want to hide this subarea, don't provide create permission for this entity.

  • msboy Profile Picture
    msboy 140 on at
    RE: Hide Custom HTML Webpage from Specific Users

    How can I use this specific role only? The article does not show how to specify roles

  • Verified answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Hide Custom HTML Webpage from Specific Users

    Then you can edit your Site map and hide it based on the Privilege, you can select existing entity which you can use for the permission check or you can create a custom entity and use it to control the navigation. Refer second link which I suggested to edit Site map.

  • msboy Profile Picture
    msboy 140 on at
    RE: Hide Custom HTML Webpage from Specific Users

    It's in the site map and it is displayed on the United interface app

  • Suggested answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Hide Custom HTML Webpage from Specific Users

    Hi,

    Can you share some details how you are using this html webresource in CRM, is it part of the form, navigation or opening it from ribbon button.

    If it's part of the form you can write js code to hide it based on the specific security role.

    www.businessintelligenceinfo.com/.../get-user-security-role-name-from-context-in-dynamics-365-ce

    www.inogic.com/.../

    If it's part of the navigation again you can hide id based on the security permissions.

    spandcrm.com/.../

    In case if it is opened from the ribbon button you can hide ribbon button based on the user security role.

    goutamdascrm.wordpress.com/.../

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans