{"id":1969,"date":"2022-07-12T06:22:16","date_gmt":"2022-07-12T06:22:16","guid":{"rendered":"https:\/\/poiseddevelopers.com\/reality-tech\/?p=1969"},"modified":"2024-04-26T12:12:23","modified_gmt":"2024-04-26T12:12:23","slug":"powerapps-role-based-security-using-sharepoint-group","status":"publish","type":"post","link":"https:\/\/poiseddevelopers.com\/reality-tech\/powerapps-role-based-security-using-sharepoint-group\/","title":{"rendered":"PowerApps \u2013 Role Based Security Using SharePoint Group"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_65 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/poiseddevelopers.com\/reality-tech\/powerapps-role-based-security-using-sharepoint-group\/#Step-1\" title=\"Step-1\">Step-1<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/poiseddevelopers.com\/reality-tech\/powerapps-role-based-security-using-sharepoint-group\/#Step-2\" title=\"Step-2\">Step-2<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/poiseddevelopers.com\/reality-tech\/powerapps-role-based-security-using-sharepoint-group\/#Step-3\" title=\"Step-3\">Step-3<\/a><\/li><\/ul><\/nav><\/div>\n<h4 class=\"elementor-heading-title elementor-size-medium\" role=\"heading\" data-uw-rm-heading=\"level\" aria-level=\"3\">Summary<\/h4>\n<p><span class=\"TextRun SCXW258632660 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\" data-uw-rm-lang=\"false\"><span class=\"NormalTextRun SCXW258632660 BCX0\">While creating a PowerApps app, we needed to add a button that would be visible\u00a0<\/span><span class=\"NormalTextRun SCXW258632660 BCX0\">only\u00a0<\/span><span class=\"NormalTextRun SCXW258632660 BCX0\">for a particular set of users who were present in a specific group in SharePoint.<\/span><span class=\"NormalTextRun SCXW258632660 BCX0\">\u00a0This\u00a0<\/span><span class=\"NormalTextRun SCXW258632660 BCX0\">was<\/span><span class=\"NormalTextRun SCXW258632660 BCX0\">\u00a0accomplished with the help of Flow.\u00a0<\/span><\/span><span class=\"EOP SCXW258632660 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span class=\"TextRun SCXW176297730 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\" data-uw-rm-lang=\"false\"><span class=\"NormalTextRun SCXW176297730 BCX0\">We would check with the help of Flow that the user that is trying to access the App,<\/span><span class=\"NormalTextRun SCXW176297730 BCX0\">\u00a0is present in the group or not. If yes, the button is available and if not, the button\u00a0<\/span><span class=\"NormalTextRun SCXW176297730 BCX0\">won\u2019t<\/span><span class=\"NormalTextRun SCXW176297730 BCX0\">\u00a0be.<\/span><\/span><span class=\"EOP SCXW176297730 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span class=\"TextRun SCXW82964574 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\" data-uw-rm-lang=\"false\"><span class=\"NormalTextRun SCXW82964574 BCX0\">The approach goes like,<\/span><\/span><span class=\"EOP SCXW82964574 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<h3 class=\"elementor-heading-title elementor-size-medium\"><span class=\"ez-toc-section\" id=\"Step-1\"><\/span>Step-1<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span class=\"NormalTextRun SCXW53418424 BCX0\">Create a SharePoint Security Group and add the users who would have\u00a0<\/span><span class=\"NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW53418424 BCX0\">the access<\/span><span class=\"NormalTextRun SCXW53418424 BCX0\">\u00a0to the button in PowerApps App.<\/span><\/p>\n<p><span class=\"TextRun SCXW115864375 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\" data-uw-rm-lang=\"false\"><span class=\"NormalTextRun SCXW115864375 BCX0\">And enable the access to view the members of the Group\u00a0<\/span><span class=\"NormalTextRun SCXW115864375 BCX0\">to<\/span><span class=\"NormalTextRun SCXW115864375 BCX0\">\u00a0Everyone<\/span><span class=\"NormalTextRun SCXW115864375 BCX0\">, so that when the user tries to login, not all users would be in the group.\u00a0<\/span><\/span><span class=\"EOP SCXW115864375 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1973 size-full\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture1-2.webp\" alt=\"img-01\" width=\"780\" height=\"144\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture1-2.webp 780w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture1-2-300x55.webp 300w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture1-2-768x142.webp 768w\" sizes=\"auto, (max-width: 780px) 100vw, 780px\" \/><\/p>\n<h3 class=\"elementor-heading-title elementor-size-medium\"><span class=\"ez-toc-section\" id=\"Step-2\"><\/span>Step-2<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span class=\"TextRun SCXW100204266 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\" data-uw-rm-lang=\"false\"><span class=\"NormalTextRun SCXW100204266 BCX0\">Creating the Flow<\/span><\/span><span class=\"EOP SCXW100204266 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<ul>\n<li><span class=\"NormalTextRun SCXW142312882 BCX0\">Create the Flow, with the trigger PowerApps of PowerApps connector<\/span><span class=\"NormalTextRun SCXW142312882 BCX0\">.<\/span><span class=\"EOP SCXW142312882 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559685&quot;:426,&quot;335559739&quot;:160,&quot;335559740&quot;:259,&quot;335559991&quot;:425}\">\u00a0<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1976 size-full\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture2-2.webp\" alt=\"img-02\" width=\"752\" height=\"162\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture2-2.webp 752w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture2-2-300x65.webp 300w\" sizes=\"auto, (max-width: 752px) 100vw, 752px\" \/><\/p>\n<ul>\n<li><span class=\"NormalTextRun SCXW217052586 BCX0\">Add an action, Initialize variable<\/span><span class=\"NormalTextRun SCXW217052586 BCX0\"> of Variables connector. Set the name as <\/span><span class=\"NormalTextRun SpellingErrorV2Themed SCXW217052586 BCX0\">isAdministrator<\/span><span class=\"NormalTextRun SCXW217052586 BCX0\"> to store a Boolean value<\/span><span class=\"NormalTextRun SCXW217052586 BCX0\">.<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1977 size-full\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture3-2.webp\" alt=\"img-03\" width=\"752\" height=\"205\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture3-2.webp 752w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture3-2-300x82.webp 300w\" sizes=\"auto, (max-width: 752px) 100vw, 752px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1978 size-full\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture4-2.webp\" alt=\"img-04\" width=\"756\" height=\"205\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture4-2.webp 756w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture4-2-300x81.webp 300w\" sizes=\"auto, (max-width: 756px) 100vw, 756px\" \/><\/p>\n<ul>\n<li><span class=\"TextRun SCXW223407429 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\" data-uw-rm-lang=\"false\"><span class=\"NormalTextRun SCXW223407429 BCX0\">Add another Initialize variable of Variables connector. Set the name as <\/span><span class=\"NormalTextRun SpellingErrorV2Themed SCXW223407429 BCX0\">UserGroupInfo<\/span><span class=\"NormalTextRun SCXW223407429 BCX0\"> to store a Boolean value<\/span><span class=\"NormalTextRun SCXW223407429 BCX0\">.<\/span><\/span><span class=\"EOP SCXW223407429 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559685&quot;:426,&quot;335559739&quot;:160,&quot;335559740&quot;:259,&quot;335559991&quot;:426}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li class=\"Paragraph SCXW220238774 BCX0\"><span class=\"EOP SCXW220238774 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559685&quot;:426,&quot;335559739&quot;:160,&quot;335559740&quot;:259,&quot;335559991&quot;:426}\"><span class=\"TextRun SCXW235617017 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\" data-uw-rm-lang=\"false\"><span class=\"NormalTextRun SCXW235617017 BCX0\">Add an action, Send an HTTP request to SharePoint of SharePoint connector.\u00a0<\/span><\/span><span class=\"EOP SCXW235617017 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559685&quot;:426,&quot;335559739&quot;:160,&quot;335559740&quot;:259,&quot;335559991&quot;:426}\">\u00a0<\/span> <\/span><\/li>\n<\/ul>\n<pre class=\"php\">Site Address \u2013 Select the site address where the security group is created \r\n\r\nMethod \u2013 GET \r\n\r\nUri \u2013 api\/web\/sitegroups\/getByName(\u2018SharePoint Group\u2019)\/Users?$filter=Email eq \u2018\u2019 \r\n\r\nReplace the SharePoint Group with the name of the group created in Step-1. Here I had created the group \u2018Line Manager\u2019.  \r\n\r\nPut the cursor pointer in between the single quotes and select the option from PowerApps, SendanHTTPrequesttoSharePoint_Uri from dynamic content window.<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1980 size-full\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture5-2.webp\" alt=\"img-05\" width=\"803\" height=\"271\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture5-2.webp 803w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture5-2-300x101.webp 300w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture5-2-768x259.webp 768w\" sizes=\"auto, (max-width: 803px) 100vw, 803px\" \/><\/p>\n<ul>\n<li><span class=\"TextRun Highlight SCXW172835418 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\" data-uw-rm-lang=\"false\"><span class=\"NormalTextRun SCXW172835418 BCX0\">Add an action, Set Variable<\/span><span class=\"NormalTextRun SCXW172835418 BCX0\">\u00a0of\u00a0<strong><a href=\"https:\/\/reality-tech.com\/use-of-dynamic-sql-for-ssis-data-sources\/\" target=\"_blank\" rel=\"noopener\" aria-label=\"Variable - open in a new tab\" data-uw-rm-ext-link=\"\">Variable<\/a><\/strong>\u00a0connector. Select the variable\u00a0<\/span><span class=\"NormalTextRun SpellingErrorV2Themed SCXW172835418 BCX0\">UserGroupInfo<\/span><span class=\"NormalTextRun SCXW172835418 BCX0\">\u00a0in Name and value as Body from<\/span><span class=\"NormalTextRun SCXW172835418 BCX0\">\u00a0Send an HTTP request to SharePoint from<\/span><span class=\"NormalTextRun SCXW172835418 BCX0\">\u00a0dynamic content<\/span><span class=\"NormalTextRun SCXW172835418 BCX0\">.<\/span><\/span><span class=\"EOP SCXW172835418 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559685&quot;:426,&quot;335559739&quot;:160,&quot;335559740&quot;:259,&quot;335559991&quot;:426}\">\u00a0<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1982 size-full\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture6-2.webp\" alt=\"img-06\" width=\"756\" height=\"171\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture6-2.webp 756w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture6-2-300x68.webp 300w\" sizes=\"auto, (max-width: 756px) 100vw, 756px\" \/><\/p>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"1\" data-aria-level=\"1\"><span data-contrast=\"auto\">Add an action, Condition of Control Connector. Set the conditional value as variable UserGroupInfo and select the condition is not equal to and in value\u00a0 to be compared as \u2018[]\u2019.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559685&quot;:426,&quot;335559739&quot;:160,&quot;335559740&quot;:259,&quot;335559991&quot;:426}\">\u00a0<\/span><\/li>\n<\/ul>\n<p><span data-contrast=\"auto\">\u00a0 \u00a0 \u00a0Inside the if yes and if no options,<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559685&quot;:426,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">\u00a0For the option if yes, add an action Set Variable of Variable connector. Select the variable\u00a0 isAdministrator and set the value as true,<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559685&quot;:426,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0For option if no, add an action Set Variable of Variable connector. Select the variable isAdministrator and set the value as false.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559685&quot;:426,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1983 size-full\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture7-2.webp\" alt=\"img-07\" width=\"803\" height=\"346\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture7-2.webp 803w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture7-2-300x129.webp 300w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture7-2-768x331.webp 768w\" sizes=\"auto, (max-width: 803px) 100vw, 803px\" \/><\/p>\n<ul>\n<li><span class=\"TextRun Highlight SCXW83987759 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\" data-uw-rm-lang=\"false\"><span class=\"NormalTextRun SCXW83987759 BCX0\">Add an action, Respond to PowerApps of PowerApps connector. Select\u00a0<\/span><span class=\"NormalTextRun SCXW83987759 BCX0\">the text option for the output. Set the variable as\u00a0<\/span><span class=\"NormalTextRun SpellingErrorV2Themed SCXW83987759 BCX0\">isAdminUser<\/span><span class=\"NormalTextRun SCXW83987759 BCX0\">\u00a0and the value as\u00a0<\/span><span class=\"NormalTextRun SpellingErrorV2Themed SCXW83987759 BCX0\">isAdministrator<\/span><span class=\"NormalTextRun SCXW83987759 BCX0\">\u00a0from the Dynamic content.<\/span><\/span><span class=\"EOP SCXW83987759 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559685&quot;:426,&quot;335559739&quot;:160,&quot;335559740&quot;:259,&quot;335559991&quot;:426}\">\u00a0<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1985 size-full\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture8-2.webp\" alt=\"img-08\" width=\"757\" height=\"227\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture8-2.webp 757w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture8-2-300x90.webp 300w\" sizes=\"auto, (max-width: 757px) 100vw, 757px\" \/><\/p>\n<p><span class=\"TextRun Highlight SCXW70064764 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\" data-uw-rm-lang=\"false\"><span class=\"NormalTextRun SCXW70064764 BCX0\">The final look of the flow would be like this<\/span><span class=\"NormalTextRun SCXW70064764 BCX0\">:<\/span><\/span><span class=\"EOP SCXW70064764 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559685&quot;:426,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1986 size-full\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture9-2.webp\" alt=\"img-09\" width=\"874\" height=\"676\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture9-2.webp 874w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture9-2-300x232.webp 300w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture9-2-768x594.webp 768w\" sizes=\"auto, (max-width: 874px) 100vw, 874px\" \/><\/p>\n<h3 class=\"elementor-heading-title elementor-size-medium\"><span class=\"ez-toc-section\" id=\"Step-3\"><\/span>Step-3<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span data-contrast=\"auto\">Implementing the Flow with PowerApps App<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">After the Flow is ready, lets configure the same with the App to test it.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">On the first screen that would be visible when you run the App, on its OnVisible Property, set the variables as below:<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1987 size-full\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture10.webp\" alt=\"img-10\" width=\"786\" height=\"202\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture10.webp 786w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture10-300x77.webp 300w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture10-768x197.webp 768w\" sizes=\"auto, (max-width: 786px) 100vw, 786px\" \/><\/p>\n<p><span data-contrast=\"auto\">First, we take the variable isAdmin and set it as false.\u00a0<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">Secondly, we would check with the flow to set the variable UserGroupInfo as the flow\u2019s outcome.\u00a0\u00a0<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">On the button\u2019s visible property, set it as If(isAdmin, true). SO that if the user is in the SharePoint Group the button would be visible else it would not.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">So when a user is inside the SharePoint Group, the screen would display the button:<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1989 size-full\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture11.webp\" alt=\"img-11\" width=\"803\" height=\"454\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture11.webp 803w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture11-300x170.webp 300w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture11-768x434.webp 768w\" sizes=\"auto, (max-width: 803px) 100vw, 803px\" \/><\/p>\n<p><span class=\"TextRun SCXW149122011 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\" data-uw-rm-lang=\"false\"><span class=\"NormalTextRun SCXW149122011 BCX0\">And when the user is not,\u00a0<\/span><span class=\"NormalTextRun SCXW149122011 BCX0\">we display:<\/span><\/span><span class=\"EOP SCXW149122011 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1990 size-full\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture12.webp\" alt=\"img-12\" width=\"803\" height=\"451\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture12.webp 803w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture12-300x168.webp 300w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/Picture12-768x431.webp 768w\" sizes=\"auto, (max-width: 803px) 100vw, 803px\" \/><\/p>\n<div style=\"background-color: white; box-shadow: 0 0 10px whitesmoke; padding: 20px; width: 800px;\">\n<h4 style=\"color: black;\">Additional Read<\/h4>\n<p><a style=\"color: #1f6799; text-decoration: none;\" target=\"_blank\" href=\"https:\/\/poiseddevelopers.com\/reality-tech\/sharepoint-for-enterprise-content-management-why-should-choose\/\" rel=\"noopener\">SharePoint for Enterprise Content Management \u2013 Why Should Choose?<\/a><\/p>\n<\/div>\n<p>In conclusion, leveraging PowerApps in conjunction with SharePoint groups provides a dynamic solution for implementing role-based access control within your applications.<\/p>\n<p>By utilizing the capabilities of Flow, we have demonstrated how to seamlessly manage user permissions, ensuring that only authorized individuals can access specific features or functionalities.<\/p>\n<p>With\u00a0<a href=\"https:\/\/reality-tech.com\/solutions\/power-platform\/\" target=\"_blank\" rel=\"noopener\" aria-label=\"Microsoft PowerApps solutions - open in a new tab\" data-uw-rm-ext-link=\"\">Microsoft PowerApps solutions<\/a>, organizations can not only enhance security measures but also streamline workflows and improve overall efficiency.<\/p>\n<p>Whether it\u2019s creating custom apps tailored to unique business requirements or integrating with existing systems for seamless collaboration, PowerApps empowers businesses to unlock the full potential of their digital ecosystems.<\/p>\n<p>By following the steps outlined in this guide, you can effectively implement role-based security measures in your PowerApps applications, providing a tailored and secure user experience for your organization.<\/p>\n<p>Incorporating Microsoft PowerApps solutions into your development toolkit opens a world of possibilities, enabling you to drive innovation, maximize productivity, and achieve your business objectives with confidence.<\/p>\n<p>Please post your question, if you will find while implementing this process. Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary While creating a PowerApps app, we needed to add a button that would be visible\u00a0only\u00a0for a particular set of users who were present in a specific group in SharePoint.\u00a0This\u00a0was\u00a0accomplished with the help of Flow.\u00a0\u00a0 We would check with the help of Flow that the user that is trying to access the App,\u00a0is present in [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":1971,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[32],"tags":[],"class_list":["post-1969","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sharepoint"],"acf":[],"_links":{"self":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/1969","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/comments?post=1969"}],"version-history":[{"count":3,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/1969\/revisions"}],"predecessor-version":[{"id":2921,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/1969\/revisions\/2921"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/media\/1971"}],"wp:attachment":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/media?parent=1969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/categories?post=1969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/tags?post=1969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}