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

Migrate ADGraph to MSGraph #1325

Merged
merged 38 commits into from
Nov 13, 2023
Merged

Migrate ADGraph to MSGraph #1325

merged 38 commits into from
Nov 13, 2023

Conversation

xuzhang3
Copy link
Collaborator

@xuzhang3 xuzhang3 commented Nov 9, 2023

SUMMARY
ISSUE TYPE
  • Bugfix Pull Request
  • Docs Pull Request
  • Feature Pull Request
  • New Module Pull Request
COMPONENT NAME
ADDITIONAL INFORMATION

xuzhang3 and others added 30 commits September 13, 2023 17:29
#1280)

* migrate sp and fix application

* migrate azure_rm_adserviceprincipal.py

* migrate azure_rm_aduser_info.py

* migrate azure_rm_adpassword_info.py

* migrate azure_rm_aduser.py

* Migrate azure_rm_adpassword.py and fix azure_rm_adpassword_info.py

* update azure_rm_adserviceprincipal.py

* update azure_rm_adserviceprincipal_info.py

* update azure_rm_aduser.py

* update azure_rm_aduser_info.py

* update azure_rm_adpassword.py

* update azure_rm_adpassword_info.py

* update azure_rm_aduser.py

* update azure_rm_adpassword.py

* update azure_rm_adpassword_info.py

* update azure_rm_adpassword.py to use add_password and remove_password

* update azure_rm_aduser_info.py to add select

* update azure_rm_aduser.py to add select

* update code

* update code

* update code

* update code

* update code

* update code

---------

Co-authored-by: neil-yechenwei <v-cheye@microsoft.com>
Co-authored-by: neil-yechenwei <v-cheye@microsoft.com>
Co-authored-by: neil-yechenwei <v-cheye@microsoft.com>
* Mark the property for deprecating and renaming property

* update code

* update code

---------

Co-authored-by: neil-yechenwei <v-cheye@microsoft.com>
@xuzhang3 xuzhang3 added the ready_for_review The PR has been modified and can be reviewed and merged label Nov 9, 2023
@l3ender
Copy link
Contributor

l3ender commented Mar 13, 2024

We just updated to the 2.x version of the collection and started seeing the following errors with our Ansible service principal (app registration):

APIError
Code: 403
message: None
error: MainError(additional_data={}, code='Authorization_RequestDenied', details=None, inner_error=InnerError(additional_data={'date': DateTime(2024, 3, 13, 18, 50, 25, tzinfo=Timezone('UTC'))}, client_request_id='957e2f10-ffb6-4de3-b84b-eba7263ef1e3', date=None, odata_type=None, request_id='8102b970-a9c8-4b3b-be26-b7c5d53aa5b7'), message='Insufficient privileges to complete the operation.', target=None)

This was due to the change done to migrate from AD Graph to MS Graph (this PR).

To resolve, we had to add the necessary permission to our service principal (Entra ID > App Registrations > API Permissions). In our case, we are only using the azure_rm_adgroup_info module and so only need read access to directories.

image

The first entry is the legacy one, the second is the updated. After we fully migrate we will be removing the first entry.

I suggest the changelog/release notes be updated to clearly specify action is required for this change and that the graph update is a breaking change. As the notes currently stand, it wasn't quite clear (to me) that this was part of the breaking change. We believe this should have been more clearly mentioned as a breaking change, as mentioned back in 2021 - #573 (comment).

Hopefully this helps someone else. Thanks!

@xuzhang3 xuzhang3 deleted the f/msgraph_beta branch May 21, 2024 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready_for_review The PR has been modified and can be reviewed and merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants