# 如何將 Power Apps 的應用程式共享至 Office 365 Groups 日前,客戶問了一個很“實用”的問題,就是在 Power Apps 中要「共享」應用程式時,為何不能選擇使用(指定)Office 365 Groups 。 經過實測,發現「共享」時,只能選擇使用者而已,唯一可以選擇的群組則是 everyone 。  趕緊來研究一下到底是為什麼呢?是不是有解決的方法呢? Google 後發現,問題是出現在 Office 365 Groups 中的「安全性群組/SecurityEnabled」屬性,它的預設值為 Flase,因此無法在 Power Apps 中使用。 找到問題發生的原因後,接下來就是... 首先,請先登入 AzureAD,  接著,來檢查一下要共享的 Office 365 Groups - “Demo-Group”,安全性群組的設定是否為 False ? 使用的 Power Shell 指令如下, ``` Get-AzureADGroup -ObjectId <ObjectID\> | select * ``` 其中,<ObjectID\>就是 Demo-Group 的物件識別碼(如下圖)  果然,這個 Demo-Group 預設的「安全性群組」為 False。(如下圖)  接著,使用下列 Power Shell 命令,將屬性修改為 True。 ``` Set-AzureADGroup -ObjectId <ObjectID> -SecurityEnabled $True ```  檢查一下,修改是否成功?(如上圖) 確定 SecurityEnabled 已設定為 True。 馬上來試試看,是否可以將「出差申請單」分享給 Office 365 Groups?  叮咚~果然可以將 Power Apps 應用程式共享給 Office 365 Groups 咯,這樣真是太方便了啊~👍 參考資料:https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/share-app#share-an-app 本文轉載自“米多力科技”,鏈接網址 http://www.midolitech.net/index.php/blog/122-power-apps-using-office-365-groups ###### tags: `米多力科技` `PowerApps` `O365 Groups` `共享` `安全性群組` `midoliTech`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up