Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Display Login user hierarchy in home page

(0) ShareShare
ReportReport
Posted on by 913

does anyone know hot to display login user hierarchy in the home page in supported or unsupported way. I'm using CRM online so not sure even if it is possible

Thanks

*This post is locked for comments

  • LeoAlt Profile Picture
    LeoAlt 16,331 on at
    RE: Display Login user hierarchy in home page

    Hi litonn,

    If your home page means dashboard, of course we can embed a web resource to a dashboard.

    1. Just open Customization and select a default dashboard that you want to display the hierachy page.

           7651.a.jpg

    1. The popup setting interface is similar to form editor, click Web resource to add our page.

          4380.b.jpg

          3.Finaly result:

          7725.c.jpg

    Please read this detailed tutorial step-by-step:

    https://www.c5insight.com/Resources/Blog/tabid/148/entryid/271/non-developers-guide-how-to-use-web-resources-for-dashboards-in-dynamics-crm.aspx

    For web resource itself, we could take Ketan's anwser as reference,

    and many thanks to Ketan's code!

    Best Regards,

    Leo

  • Suggested answer
    NODAL Profile Picture
    NODAL 860 on at
    RE: Display Login user hierarchy in home page

    Hi Liton,

    Follow below steps:

    1) Create HTML web resource

    <html><head>

    <script src="ClientGlobalContext.js.aspx" type="text/javascript"></script>

    <script type="text/javascript">

    document.onreadystatechange = function () {

           if (document.readyState == "complete") {

    var clientUrl=parent.Xrm.Utility.getGlobalContext().getClientUrl();

    var loggedInUserId=parent.Xrm.Utility.getGlobalContext().userSettings.userId;

    var newUrl=clientUrl+"/_root/hierarchy.aspx?etc=8&oId="+loggedInUserId;

    var iFrame=document.getElementById("hirerchy");

    iFrame.src=newUrl;

    }};

    </script>

    </head><body>

    <iframe id="hirerchy" src="about:blank" style='margin:0px;padding:0px;border:currentColor;border-image:none;left:0px;top:0px;width:100%;height:100%;overflow:hidden;position:fixed;z-index:999999'></iframe>

    </body></html>

    2) In Using SiteMap Editor Add URL of above created webresouce in any sub area

    3) Using Personal Option you can select above created sub area as default for your user

    pastedimage1567060501898v1.png

    4) You can do this same for all users in bulk using xrmtoolbox's User Settings utility

    5) Done!

    pastedimage1567060691292v2.png

  • Suggested answer
    Pawar Pravin  Profile Picture
    Pawar Pravin 5,229 on at
    RE: Display Login user hierarchy in home page

    I would suggest you to create HTML web resource and add in iframe inside dashboard.

    In HTML design you could show hierarchy using js

    Also make sure that dashboard should be default home page.

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…

Vahid Ghafarpour – Community Spotlight

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

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,468 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,287 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans