{"id":118,"date":"2018-04-08T19:45:13","date_gmt":"2018-04-08T18:45:13","guid":{"rendered":"http:\/\/pro.timphaus.de\/?p=118"},"modified":"2019-04-19T12:41:01","modified_gmt":"2019-04-19T11:41:01","slug":"create-aad-user-and-import-to-d365fo","status":"publish","type":"post","link":"https:\/\/dynamiacs.com\/?p=118","title":{"rendered":"Create AAD user and import to D365FO"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In this\nblog post i will show how easy it is to create user in the Azure Active\nDirectory and to import them into dynamics 365 for finance and operations as\nemployee and user.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This can\nalso be a part of a complete onboarding process for a company.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For my\nexample I use as a trigger the virtual flow button but this can also be for\nexample a sharepoint list where a new employee is added. My list in this post\nis an easy small excel sheet with some informations regarding the new employee.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"784\" height=\"870\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/02\/usercreate_00.png\" alt=\"\" class=\"wp-image-119\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/usercreate_00.png 784w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/usercreate_00-270x300.png 270w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/usercreate_00-768x852.png 768w\" sizes=\"auto, (max-width: 784px) 100vw, 784px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The first\naction in my flow is to get the new employees for that we want to run the\nprocess.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"745\" height=\"308\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/02\/usercreate_01.png\" alt=\"\" class=\"wp-image-120\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/usercreate_01.png 745w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/usercreate_01-300x124.png 300w\" sizes=\"auto, (max-width: 745px) 100vw, 745px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Because\nwe can have a lot of entries in the list we get an \u201eApply to each\u201c so that the\nprocess for each list entry.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"770\" height=\"156\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/02\/usercreate_02.png\" alt=\"\" class=\"wp-image-121\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/usercreate_02.png 770w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/usercreate_02-300x61.png 300w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/usercreate_02-768x156.png 768w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The first\naction in the \u201eApply to each\u201c is to create the AAD user. For this we map the\nfields from the employee list (excel) to the Create User action.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"734\" height=\"421\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/02\/usercreate_03.png\" alt=\"\" class=\"wp-image-122\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/usercreate_03.png 734w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/usercreate_03-300x172.png 300w\" sizes=\"auto, (max-width: 734px) 100vw, 734px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now we\nwant to add the user to an office group to f.e. give him the needed licenses\nand security rights for his job. This is not part of this flow description.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"742\" height=\"183\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/02\/usercreate_04.png\" alt=\"\" class=\"wp-image-123\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/usercreate_04.png 742w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/usercreate_04-300x74.png 300w\" sizes=\"auto, (max-width: 742px) 100vw, 742px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After\ncreating an AAD user we will create an employee in the human ressource\nmanagement of Dynamics 365 for Finance and Operations. In my example I give him\nthe start date of today which is done by the expression \u201eutcnow()\u201c.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"732\" height=\"367\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/02\/usercreate_05.png\" alt=\"\" class=\"wp-image-124\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/usercreate_05.png 732w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/usercreate_05-300x150.png 300w\" sizes=\"auto, (max-width: 732px) 100vw, 732px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After\ncreating the employee I want to setup an user because the new employee will\nwork with D365FO in his job.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"734\" height=\"422\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/02\/usercreate_06.png\" alt=\"\" class=\"wp-image-125\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/usercreate_06.png 734w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/usercreate_06-300x172.png 300w\" sizes=\"auto, (max-width: 734px) 100vw, 734px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">To create\nthe user I will refer to the created AAD user we have created some steps\nbefore. A necessary field to setup is the&nbsp;\ntype field otherwise you can\u2019t create an user. In my flow I use \u201eClaim\nUser\u201c.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"328\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/02\/usercreate_07.png\" alt=\"\" class=\"wp-image-126\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/usercreate_07.png 730w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/usercreate_07-300x135.png 300w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">At last\nyou have to add a user role to the new user. In my example I give him the\n\u201eSystem Administrator\u201c role.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now the\nuser can login to D365FO and can do his work there.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I hope\nthis give you an idea about the possibilities of Microsoft Flow.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Feel free\nto get in contact with me via Twitter (@dynamiacs).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog post i will show how easy it is to create user in the Azure Active Directory and to import them into dynamics 365 for finance and operations as employee and user. This can also be a part of a complete onboarding process for a company. For my example I use as a&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[8],"tags":[20,11],"class_list":["post-118","post","type-post","status-publish","format-standard","hentry","category-blog","tag-azure-active-directory","tag-dynamics-365"],"taxonomy_info":{"category":[{"value":8,"label":"Blog"}],"post_tag":[{"value":20,"label":"Azure Active Directory"},{"value":11,"label":"Dynamics 365"}]},"featured_image_src_large":false,"author_info":{"display_name":"Jan","author_link":"https:\/\/dynamiacs.com\/?author=2"},"comment_info":0,"category_info":[{"term_id":8,"name":"Blog","slug":"blog","term_group":0,"term_taxonomy_id":8,"taxonomy":"category","description":"","parent":0,"count":38,"filter":"raw","cat_ID":8,"category_count":38,"category_description":"","cat_name":"Blog","category_nicename":"blog","category_parent":0}],"tag_info":[{"term_id":20,"name":"Azure Active Directory","slug":"azure-active-directory","term_group":0,"term_taxonomy_id":20,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":11,"name":"Dynamics 365","slug":"dynamics-365","term_group":0,"term_taxonomy_id":11,"taxonomy":"post_tag","description":"","parent":0,"count":14,"filter":"raw"}],"_links":{"self":[{"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/posts\/118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=118"}],"version-history":[{"count":1,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/posts\/118\/revisions"}],"predecessor-version":[{"id":127,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/posts\/118\/revisions\/127"}],"wp:attachment":[{"href":"https:\/\/dynamiacs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}