{"id":4656,"date":"2024-12-17T12:48:54","date_gmt":"2024-12-17T12:48:54","guid":{"rendered":"https:\/\/himbap.com\/blog\/?p=4656"},"modified":"2024-12-17T12:48:54","modified_gmt":"2024-12-17T12:48:54","slug":"generating-user-security-role-reports-in-d365-ce","status":"publish","type":"post","link":"https:\/\/himbap.com\/blog\/?p=4656","title":{"rendered":"Generating User Security Role Reports in D365 CE"},"content":{"rendered":"\n<p><strong>Requirement<\/strong><\/p>\n\n\n\n<p>Occasionally we need to generate report for the User and their security role for the different purpose. In this post I am going to share quick steps to get this report.<\/p>\n\n\n\n<p><strong>Solution<\/strong><\/p>\n\n\n\n<p>Although we have one out of the box report available called &#8220;User Summary&#8221; report which we can access from reports area if you have or from Advanced Find.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/UserSummaryReport.jpg\"><img decoding=\"async\" loading=\"lazy\" width=\"531\" height=\"267\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/UserSummaryReport.jpg\" alt=\"\" class=\"wp-image-4659\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/UserSummaryReport.jpg 531w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/UserSummaryReport-300x151.jpg 300w\" sizes=\"(max-width: 531px) 100vw, 531px\" \/><\/a><\/figure><\/div>\n\n\n<p>After running the report, we can export the data to Excel easily but extracting the required information from the output can be a bit challenging due to the way the data is structured. You can see output below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport1.jpg\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"428\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport1-1024x428.jpg\" alt=\"\" class=\"wp-image-4660\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport1-1024x428.jpg 1024w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport1-300x126.jpg 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport1-768x321.jpg 768w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport1-624x261.jpg 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport1.jpg 1042w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>But don&#8217;t worry we have an easy way to get it :), thanks to <strong>Jonathan Daugaard<\/strong>, we can use <strong>User Team Security Role Report<\/strong> tool from <strong>XrmToolbox <\/strong>to extract data and group it based on the security role. <\/p>\n\n\n\n<ol>\n<li>Open XrmToolBox and connect to your enviornment, you can download both the tools if not done already.<\/li>\n\n\n\n<li>Search for User, Team and Security Role Report<\/li>\n\n\n\n<li>Click on Load Data to load all the user list from your environment.<\/li>\n\n\n\n<li>Select all the users and Click on <strong>Generate Report<\/strong> button.<\/li>\n\n\n\n<li>It will generate CSV file. <\/li>\n\n\n\n<li>Open CSV file and select First column and use Text to Columns<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport2.jpg\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"371\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport2-1024x371.jpg\" alt=\"\" class=\"wp-image-4661\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport2-1024x371.jpg 1024w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport2-300x109.jpg 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport2-768x278.jpg 768w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport2-624x226.jpg 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport2.jpg 1251w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>7. Select all the users with all columns and click on Insert to select PivotTable<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport3.jpg\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport3.jpg\" alt=\"\" class=\"wp-image-4662\" width=\"227\" height=\"287\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport3.jpg 422w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport3-238x300.jpg 238w\" sizes=\"(max-width: 227px) 100vw, 227px\" \/><\/a><\/figure><\/div>\n\n\n<p>8. Under the PivotTable fist drag security role under Rows and then drag name under Rows<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport4.jpg\"><img decoding=\"async\" loading=\"lazy\" width=\"414\" height=\"542\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport4.jpg\" alt=\"\" class=\"wp-image-4663\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport4.jpg 414w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport4-229x300.jpg 229w\" sizes=\"(max-width: 414px) 100vw, 414px\" \/><\/a><\/figure>\n\n\n\n<p>Finally we have our User Summary report ready where we can see user list based on the security roles like below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport5.jpg\"><img decoding=\"async\" loading=\"lazy\" width=\"442\" height=\"482\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport5.jpg\" alt=\"\" class=\"wp-image-4664\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport5.jpg 442w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2024\/12\/usersummaryreport5-275x300.jpg 275w\" sizes=\"(max-width: 442px) 100vw, 442px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Summary<\/strong><\/p>\n\n\n\n<p>This is how we can easy get list of the user based on the security roles.<\/p>\n\n\n\n<p>Hope it will help someone !!<br><strong>Keep learning and Keep Sharing !!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Requirement Occasionally we need to generate report for the User and their security role for the different purpose. In this post I am going to share quick steps to get this report. Solution Although we have one out of the box report available called &#8220;User Summary&#8221; report which we can access from reports area if you have or from Advanced&#8230; <a href=\"https:\/\/himbap.com\/blog\/?p=4656\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":4663,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[402],"tags":[1113,1111,1109,1110,1112,1108],"_links":{"self":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4656"}],"collection":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4656"}],"version-history":[{"count":3,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4656\/revisions"}],"predecessor-version":[{"id":4666,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4656\/revisions\/4666"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/4663"}],"wp:attachment":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}