{"id":6444,"date":"2021-03-04T14:13:19","date_gmt":"2021-03-04T14:13:19","guid":{"rendered":"https:\/\/www.softreetechnology.com\/?p=6444"},"modified":"2021-03-04T14:13:19","modified_gmt":"2021-03-04T14:13:19","slug":"add-user-to-a-sharepoint-group-when-sharepoint-list-item-is-created-or-modified-using-microsoft-flow-power-automate","status":"publish","type":"post","link":"https:\/\/softreetechnology.com\/blog\/sharepoint\/add-user-to-a-sharepoint-group-when-sharepoint-list-item-is-created-or-modified-using-microsoft-flow-power-automate\/","title":{"rendered":"Add user to a SharePoint group when SharePoint list item is created or modified using Microsoft flow\/power automate"},"content":{"rendered":"<p>[vc_row][vc_column][vc_column_text]<\/p>\n<p>In this blog, we will know how to add a user to SharePoint group when item is created or modified using power automate or Microsoft flow. We need to follow below steps to add user to SharePoint group.<\/p>\n<p>&nbsp;<\/p>\n<p>Step 1:<\/p>\n<p>I have created a custom list having a user field. When I will update a item with user value that particular user will be added to our group.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6445 size-full\" src=\"https:\/\/www.softreetechnology.com\/wp-content\/uploads\/2021\/03\/1-1.png\" alt=\"\" width=\"650\" height=\"274\" \/><\/p>\n<p><em>Img1. This is my custom list. Here Completed By is my person\/group field.<\/em><\/p>\n<p>Step2:<\/p>\n<p>Now we need to create our Microsoft flow. Log in to Microsoft office 365 portal. From app launcher menu click on flow to create Microsoft flow.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6446 size-full\" src=\"https:\/\/www.softreetechnology.com\/wp-content\/uploads\/2021\/03\/2-2.png\" alt=\"\" width=\"650\" height=\"204\" \/><\/p>\n<p><em>Img2. Created instant cloud flow<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Step 3:<\/p>\n<p>Now we need to trigger action. I have selected when item is created or modified.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6447 size-full\" src=\"https:\/\/www.softreetechnology.com\/wp-content\/uploads\/2021\/03\/3-2.png\" alt=\"\" width=\"572\" height=\"436\" \/><\/p>\n<p><em>Img3. Skiped limited trigger action and choose when an item is created or modified menu in advance option<\/em><\/p>\n<p><em>\u00a0<\/em><\/p>\n<p>Step 4: Give site address and list name on the address bar add click on next step.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6448 size-full\" src=\"https:\/\/www.softreetechnology.com\/wp-content\/uploads\/2021\/03\/4-1.png\" alt=\"\" width=\"623\" height=\"289\" \/><\/p>\n<p><em>Img4. Updated site and list details.<\/em><\/p>\n<p>Step 5: Now choose action.\u00a0 We need to choose <strong>send http request to sharepoint<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6449 size-full\" src=\"https:\/\/www.softreetechnology.com\/wp-content\/uploads\/2021\/03\/5-1.png\" alt=\"\" width=\"591\" height=\"413\" \/><\/p>\n<p><em>Img5. Choose action<\/em><\/p>\n<p>Step 6: update site address,method,uri and header value. Here we will add \u201cPost\u201d method as we will write user to group. My Uri value is \u201c_api\/web\/sitegroups(4)\/users\u201d. Here 4 is my group id.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6450 size-full\" src=\"https:\/\/www.softreetechnology.com\/wp-content\/uploads\/2021\/03\/6-1.png\" alt=\"\" width=\"650\" height=\"298\" \/><\/p>\n<p><em>Img6. This is the group where we will add user <\/em><\/p>\n<p>Add header and and content as given below<\/p>\n<p>accept\u00a0 application\/json;odata=verbose<\/p>\n<p>content-type application\/json;odata=verbose<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6451 size-full\" src=\"https:\/\/www.softreetechnology.com\/wp-content\/uploads\/2021\/03\/7-1.png\" alt=\"\" width=\"639\" height=\"340\" \/><\/p>\n<p><em>Img7: update action menu<\/em><\/p>\n<p>Update body address bar with {&#8220;__metadata&#8221;:{&#8220;type&#8221;:&#8221;SP.User&#8221;},&#8221;LoginName&#8221;:&#8221;CompletedByclaims&#8221;}.just dynamically choose CompletedByclaims.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6452 size-full\" src=\"https:\/\/www.softreetechnology.com\/wp-content\/uploads\/2021\/03\/8-1.png\" alt=\"\" width=\"650\" height=\"280\" \/><\/p>\n<p><em>Img8: action menu body address bar update<\/em><\/p>\n<p>Step 7: Save the flow with proper name. Now we need to add an item in our list.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6453 size-full\" src=\"https:\/\/www.softreetechnology.com\/wp-content\/uploads\/2021\/03\/9.png\" alt=\"\" width=\"650\" height=\"286\" \/><\/p>\n<p><em>Img9. Added item in custom list.<\/em><\/p>\n<p>Step 8:<\/p>\n<p>Now go to \u201cMy flows\u201d to check whether flow is success or not. Refresh the browser in few second it will shows build status.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6454 size-full\" src=\"https:\/\/www.softreetechnology.com\/wp-content\/uploads\/2021\/03\/10.png\" alt=\"\" width=\"650\" height=\"366\" \/><\/p>\n<p><em>Img10. Flow runs succeed<\/em><\/p>\n<p>Step 9: Now to go to sharepoint group, to check result User is added to group successfully.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6455 size-full\" src=\"https:\/\/www.softreetechnology.com\/wp-content\/uploads\/2021\/03\/11.png\" alt=\"\" width=\"650\" height=\"228\" \/><\/p>\n<p><strong>Keywords:<\/strong><\/p>\n<p>Add user to Sharepoint Group using Microsoft flow<\/p>\n<p>Add user to SP Group using Power Automate<\/p>\n<p>Add user to SP Group when a new item to Sharepoint custom list <strong>using send http request to sharepoint<\/strong> action .<\/p>\n<p>Add user to sharepoint group when item is modified in sharepoint list <strong>using send http request to sharepoint<\/strong> action .<\/p>\n<p>Add user to a sharepoint group when sharepoint list item is created or modified using microsoft flow\/power automate.[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column][vc_column_text] In this blog, we will know how to add a user to SharePoint group when item is created or modified using power automate or Microsoft flow. We need to follow below steps to add user to SharePoint group. &nbsp; Step 1: I have created a custom list having a user field. When I will update a item with user [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6456,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[],"class_list":["post-6444","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sharepoint"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Add user to a SharePoint group when SharePoint list item is created or modified using Microsoft flow\/power automate - Softree Technology<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/softreetechnology.com\/blog\/sharepoint\/add-user-to-a-sharepoint-group-when-sharepoint-list-item-is-created-or-modified-using-microsoft-flow-power-automate\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add user to a SharePoint group when SharePoint list item is created or modified using Microsoft flow\/power automate - Softree Technology\" \/>\n<meta property=\"og:description\" content=\"[vc_row][vc_column][vc_column_text] In this blog, we will know how to add a user to SharePoint group when item is created or modified using power automate or Microsoft flow. We need to follow below steps to add user to SharePoint group. &nbsp; Step 1: I have created a custom list having a user field. When I will update a item with user [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/softreetechnology.com\/blog\/sharepoint\/add-user-to-a-sharepoint-group-when-sharepoint-list-item-is-created-or-modified-using-microsoft-flow-power-automate\/\" \/>\n<meta property=\"og:site_name\" content=\"Softree Technology\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-04T14:13:19+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Add user to a SharePoint group when SharePoint list item is created or modified using Microsoft flow\/power automate - Softree Technology","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/softreetechnology.com\/blog\/sharepoint\/add-user-to-a-sharepoint-group-when-sharepoint-list-item-is-created-or-modified-using-microsoft-flow-power-automate\/","og_locale":"en_US","og_type":"article","og_title":"Add user to a SharePoint group when SharePoint list item is created or modified using Microsoft flow\/power automate - Softree Technology","og_description":"[vc_row][vc_column][vc_column_text] In this blog, we will know how to add a user to SharePoint group when item is created or modified using power automate or Microsoft flow. We need to follow below steps to add user to SharePoint group. &nbsp; Step 1: I have created a custom list having a user field. When I will update a item with user [&hellip;]","og_url":"https:\/\/softreetechnology.com\/blog\/sharepoint\/add-user-to-a-sharepoint-group-when-sharepoint-list-item-is-created-or-modified-using-microsoft-flow-power-automate\/","og_site_name":"Softree Technology","article_published_time":"2021-03-04T14:13:19+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/add-user-to-a-sharepoint-group-when-sharepoint-list-item-is-created-or-modified-using-microsoft-flow-power-automate\/#article","isPartOf":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/add-user-to-a-sharepoint-group-when-sharepoint-list-item-is-created-or-modified-using-microsoft-flow-power-automate\/"},"author":{"name":"admin","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/person\/98740297642f06debccdcee2de84086b"},"headline":"Add user to a SharePoint group when SharePoint list item is created or modified using Microsoft flow\/power automate","datePublished":"2021-03-04T14:13:19+00:00","mainEntityOfPage":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/add-user-to-a-sharepoint-group-when-sharepoint-list-item-is-created-or-modified-using-microsoft-flow-power-automate\/"},"wordCount":453,"commentCount":0,"publisher":{"@id":"https:\/\/softreetechnology.com\/blog\/#organization"},"image":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/add-user-to-a-sharepoint-group-when-sharepoint-list-item-is-created-or-modified-using-microsoft-flow-power-automate\/#primaryimage"},"thumbnailUrl":"","articleSection":["SharePoint"],"inLanguage":"en","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/softreetechnology.com\/blog\/sharepoint\/add-user-to-a-sharepoint-group-when-sharepoint-list-item-is-created-or-modified-using-microsoft-flow-power-automate\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/add-user-to-a-sharepoint-group-when-sharepoint-list-item-is-created-or-modified-using-microsoft-flow-power-automate\/","url":"https:\/\/softreetechnology.com\/blog\/sharepoint\/add-user-to-a-sharepoint-group-when-sharepoint-list-item-is-created-or-modified-using-microsoft-flow-power-automate\/","name":"Add user to a SharePoint group when SharePoint list item is created or modified using Microsoft flow\/power automate - Softree Technology","isPartOf":{"@id":"https:\/\/softreetechnology.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/add-user-to-a-sharepoint-group-when-sharepoint-list-item-is-created-or-modified-using-microsoft-flow-power-automate\/#primaryimage"},"image":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/add-user-to-a-sharepoint-group-when-sharepoint-list-item-is-created-or-modified-using-microsoft-flow-power-automate\/#primaryimage"},"thumbnailUrl":"","datePublished":"2021-03-04T14:13:19+00:00","breadcrumb":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/add-user-to-a-sharepoint-group-when-sharepoint-list-item-is-created-or-modified-using-microsoft-flow-power-automate\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/softreetechnology.com\/blog\/sharepoint\/add-user-to-a-sharepoint-group-when-sharepoint-list-item-is-created-or-modified-using-microsoft-flow-power-automate\/"]}]},{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/add-user-to-a-sharepoint-group-when-sharepoint-list-item-is-created-or-modified-using-microsoft-flow-power-automate\/#primaryimage","url":"","contentUrl":""},{"@type":"BreadcrumbList","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/add-user-to-a-sharepoint-group-when-sharepoint-list-item-is-created-or-modified-using-microsoft-flow-power-automate\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/softreetechnology.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Add user to a SharePoint group when SharePoint list item is created or modified using Microsoft flow\/power automate"}]},{"@type":"WebSite","@id":"https:\/\/softreetechnology.com\/blog\/#website","url":"https:\/\/softreetechnology.com\/blog\/","name":"Softree Technology","description":"Celebrating 10+ Years in SharePoint Consulting !","publisher":{"@id":"https:\/\/softreetechnology.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/softreetechnology.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/softreetechnology.com\/blog\/#organization","name":"Softree Technology","url":"https:\/\/softreetechnology.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/softreetechnology.com\/blog\/wp-content\/uploads\/2023\/03\/cropped-white-logo-soft.png","contentUrl":"https:\/\/softreetechnology.com\/blog\/wp-content\/uploads\/2023\/03\/cropped-white-logo-soft.png","width":844,"height":230,"caption":"Softree Technology"},"image":{"@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/person\/98740297642f06debccdcee2de84086b","name":"admin","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6fc78c8a7aa3fb0bf43c3b9a2e3962d7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6fc78c8a7aa3fb0bf43c3b9a2e3962d7?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/softreeconsulting.com"],"url":"https:\/\/softreetechnology.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/posts\/6444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/comments?post=6444"}],"version-history":[{"count":0,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/posts\/6444\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/media?parent=6444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/categories?post=6444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/tags?post=6444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}