Skip to content

Add Get-PnPUserAndContentMoveState cmdlet and related model for user and content move state retrieval#5338

Merged
gautamdsheth merged 1 commit into
devfrom
feat/multi-geo-userget
May 31, 2026
Merged

Add Get-PnPUserAndContentMoveState cmdlet and related model for user and content move state retrieval#5338
gautamdsheth merged 1 commit into
devfrom
feat/multi-geo-userget

Conversation

@gautamdsheth
Copy link
Copy Markdown
Collaborator

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

NA

What is in this Pull Request ?

Added Get-PnPUserAndContentMoveState cmdlet and related docs

Copilot AI review requested due to automatic review settings May 31, 2026 19:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new SharePoint Online multi-geo admin cmdlet for retrieving user and OneDrive content move job state, backed by new REST client methods and a response model.

Changes:

  • Added Get-PnPUserAndContentMoveState cmdlet with lookup by UPN, lookup by move ID, and move report modes.
  • Added REST API support and model/enums for user/content move state responses.
  • Added cmdlet documentation and changelog entry.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/Commands/Admin/GetUserAndContentMoveState.cs Implements the new admin cmdlet and output shaping.
src/Commands/Utilities/MultiGeo/MultiGeoRestApiClient.cs Adds REST paths/methods for user/content move state retrieval.
src/Commands/Model/UserAndContentMoveState.cs Adds the response model and related enum types.
documentation/Get-PnPUserAndContentMoveState.md Documents syntax, examples, parameters, and outputs.
CHANGELOG.md Adds the new cmdlet to the current nightly changelog.

protected override void ExecuteCmdlet()
{
var multiGeoRestApiClient = new MultiGeoRestApiClient(AdminContext);
var includeVerboseProperties = IsVerboseMode();
private const string UserMoveJobsReportApiVersion = "1.3.2";
private const string UserMoveJobPathByUpn = "UserMoveJobs(upn='{0}')";
private const string UserMoveJobPathByMoveId = "UserMoveJobs/GetByMoveId(odbMoveId='{0}')";
private const string UserMoveJobsPathForMoveReport = "UserMoveJobs/GetMoveReport(moveState={0},moveDirection={1},startTime='{2:u}',endTime='{3:u}',limit='{4}')";
@gautamdsheth gautamdsheth merged commit a7332d1 into dev May 31, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants