Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.33 KB

File metadata and controls

24 lines (18 loc) · 1.33 KB

Lepaya Learning MS Teams app - MS Graph permissions PowerShell scripts

Powershell scripts to add/remove permissions to the Lepaya Learning MS Teams app

Prerequisites

  • Powershell environment (version 7.3.0)
  • Powershell Module: Microsoft.Graph.Applications 1.17.0

Usage:

ℹ️ Detailed instructions on how to run this script can be found here!

Add Permissions to the Lepaya Learning MS Teams app

pwsh ./addPermissionsLepaya.ps1 -servicePrincipalID SERVICE_PRINCIPAL_OBJECT_ID

-servicePrincipalID: app's identity in the Azure AD tenant.

Add permissions for a specific resource (optional)

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.

Remove ALL granted permissions

pwsh ./removePermissionsLepaya.ps1 -servicePrincipalID SERVICE_PRINCIPAL_OBJECT_ID

-servicePrincipalID: app's identity in the Azure AD tenant.