Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export of 'privilegedAccess/azureResources/resources' not working with P1 license #61

Open
jbosloy opened this issue Dec 16, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@jbosloy
Copy link

jbosloy commented Dec 16, 2023

In Get-EEDefaultSchema.ps1 'privilegedAccess/azureResources/resources', the IgnoreError string is set to: 'The tenant has not onboarded to PIM.'

When running the export with -All, I see the export fail on this endpoint with an error of: 'The tenant needs an AAD Premium 2 license.'

By changing the ignoreError string in this file, I can get the export to complete successfully.

If both error strings are possible under different conditions (e.g. a P1 license vs. a P2 license), perhaps in Export-Entra.ps1, the check against ignoreError could use a -match to allow use of a regex, and then ignore errors for this endpoint could be:
(The tenant has not onboarded to PIM.|The tenant needs an AAD Premium 2 license.)

@kreestof1
Copy link

I have the same error with an AAD B2C

@SamErde
Copy link
Contributor

SamErde commented May 31, 2024

Like #62, this sounds like an opportunity to add checks for relevant licenses and handle the error if not applicable.

@SamErde
Copy link
Contributor

SamErde commented Jun 21, 2024

@merill and @snozzberries, do you think this is in any way related to Maester issue #195? The error and API path are both different, but the scenario feels similar: reading PIM information fails for application identities but works with delegated GA access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants