Conversation
…platform_user resource
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces a breaking change to the powerplatform_user resource import format, moving from a single AAD object ID to a composite environment_id/aad_id identifier to support environment-scoped imports.
Changes:
- Updated
powerplatform_userimport parsing/validation to requireenvironment_id/aad_id. - Updated the user resource import example script to use the composite ID format.
- Updated generated user documentation and added a breaking-change changelog entry.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
internal/services/authorization/resource_user.go |
Enforces composite import ID format and sets environment_id + aad_id during import. |
examples/resources/powerplatform_user/import.sh |
Updates import example to environment_id/aad_id. |
docs/resources/user.md |
Updates the documented import example to match the new composite format. |
.changes/unreleased/breaking-20260402-143307.yaml |
Records the breaking change in the changelog system. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a breaking change to the import process for the
powerplatform_userresource. The import now requires a composite ID in the formatenvironment_id/user_aad_idinstead of just the user AAD ID. Documentation and example scripts have been updated to reflect this change, and the import logic has been modified to parse and validate the new format.Breaking Change:
powerplatform_userresource now requires the composite formatenvironment_id/user_aad_idinstead of just the AAD ID. This is a breaking change and users must update their import commands accordingly. (.changes/unreleased/breaking-20260402-143307.yaml)Documentation and Example Updates:
docs/resources/user.md) to use the new composite ID format.examples/resources/powerplatform_user/import.sh) to demonstrate the new required format.Code Changes:
resource_user.goto parse and validate the composite import ID, extracting and setting bothenvironment_idandaad_idattributes. [1] [2]