Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Display Login user hierarchy in home page

Posted on by 911

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,329 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,227 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

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,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans