Skip to content

Commit

Permalink
added permissions endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Aug 7, 2023
1 parent a3874fc commit 2f6a189
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Cache_SAMSetup/PermissionsTranslator.json
Original file line number Diff line number Diff line change
Expand Up @@ -2982,6 +2982,15 @@
"userConsentDisplayName": "Read all terms of use acceptance statuses",
"value": "AgreementAcceptance.Read.All"
},
{
"description": "Read activity data for your organization",
"displayName": "Allows the application to read activity data for your organization.",
"id": "594c1fb6-4f81-4475-ae41-0c394909246c",
"Origin": "Delegated",
"userConsentDescription": "Read activity data for your organization",
"userConsentDisplayName": "Allows the application to read activity data for your organization.",
"value": "ActivityFeed.Read"
},
{
"description": "Allows the app to read and query your audit log activities, on behalf of the signed-in user.",
"displayName": "Read audit log data",
Expand Down
6 changes: 6 additions & 0 deletions Cache_SAMSetup/SAMManifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@
"resourceAccess": [
{ "id": "e60370c1-e451-437e-aa6e-d76df38e5f15", "type": "Scope" }
]
},
{
"resourceAppId": "c5393580-f805-4401-95e8-94b7a6ef2fc2",
"resourceAccess": [
{ "id": "594c1fb6-4f81-4475-ae41-0c394909246c", "type": "Scope" }
]
}
]
}
2 changes: 2 additions & 0 deletions ExecCPVPermissions/run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ $GraphRequest = $ExpectedPermissions.requiredResourceAccess | ForEach-Object {
'fc780465-2017-40d4-a0c5-307022471b92' { 'WindowsDefenderATP' }
'00000003-0000-0ff1-ce00-000000000000' { 'Sharepoint' }
'48ac35b8-9aa8-4d74-927d-1f4a14a0b239' { 'Skype and Teams Tenant Admin API' }
'c5393580-f805-4401-95e8-94b7a6ef2fc2' { 'Office 365 Management API' }

}
$Scope = ($Translator | Where-Object { $_.id -in $Resource.ResourceAccess.id } | Where-Object { $_.value -notin 'profile', 'openid', 'offline_access' }).value -join ', '
if ($Scope) {
Expand Down
1 change: 1 addition & 0 deletions UpdatePermissionsQueue/run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ $GraphRequest = $ExpectedPermissions.requiredResourceAccess | ForEach-Object {
'fc780465-2017-40d4-a0c5-307022471b92' { 'WindowsDefenderATP' }
'00000003-0000-0ff1-ce00-000000000000' { 'Sharepoint' }
'48ac35b8-9aa8-4d74-927d-1f4a14a0b239' { 'Skype and Teams Tenant Admin API' }
'c5393580-f805-4401-95e8-94b7a6ef2fc2' { 'Office 365 Management API' }


}
Expand Down

0 comments on commit 2f6a189

Please sign in to comment.