Skip to content

Test 21810 - Resource-specific consent is restricted - Conflicting guidanceΒ #715

@ahelland

Description

@ahelland

This test is failing in my tenant with the following result "The current state is ManagedByMicrosoft.".

This aligns perfectly with the actual test code:

if ($result.State -eq 'EnabledForPreApprovedAppsOnly' -or $result.State -eq 'DisabledForAllApps') {
  $passed = $true
  $testResultMarkdown += "Resource-Specific Consent is restricted.`n`n%TestResult%"
}
else {
  $passed = $false
  $testResultMarkdown += "Resource-Specific Consent is not restricted.`n`n%TestResult%"
 }

However, the guide on MS Learn states the following:
By default, the preapproval policies are managed by Microsoft, and we recommend that organizations maintain ManagedByMicrosoft state. This state allows Microsoft's security team to deliver the best security for your organization.

https://learn.microsoft.com/en-us/microsoftteams/platform/graph-api/rsc/preapproval-instruction-docs

So, unless there is some nuance I'm not catching it looks like a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions