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

azuread_directory_role: fix for changes in Graph API #1575

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

philband
Copy link

This PR fixes the problem described in #1526.

It seems like the Graph Endpoint GET /directoryRoles changed when working with filters.
When querying for roles which have not been initialized in a tenant it now returns 200 OK with an empty value instead of previously returning 404 NOT FOUND

This PR changes to logic of the azuread_directory_role resource to also activate the role when an empty set of roles is returned to the filter query.

…with filter returns empty array instead of 404; fixes hashicorp#1526
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant