Powershell scripts to add/remove permissions to the Lepaya Learning MS Teams app
- Powershell environment (version 7.3.0)
- Powershell Module: Microsoft.Graph.Applications 1.17.0
ℹ️ Detailed instructions on how to run this script can be found here!
pwsh ./addPermissionsLepaya.ps1 -servicePrincipalID SERVICE_PRINCIPAL_OBJECT_ID
-servicePrincipalID
: app's identity in the Azure AD tenant.
pwsh ./addPermissionsLepaya.ps1 -servicePrincipalID SERVICE_PRINCIPAL_OBJECT_ID -resourceId MICROSOFT_GRAPH_OBJECT_ID
-servicePrincipalID
: app's identity in the Azure AD tenant.
-resourceId
: service to which the permissions are associated. In our case it is Microsoft Graph.
pwsh ./removePermissionsLepaya.ps1 -servicePrincipalID SERVICE_PRINCIPAL_OBJECT_ID
-servicePrincipalID
: app's identity in the Azure AD tenant.