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

Updates to Sync-PnPSharePointUserProfilesFromAzureActiveDirectory and Get-PnPAzureADUser #1559

Merged
merged 12 commits into from
Feb 8, 2022

Conversation

KoenZomers
Copy link
Collaborator

@KoenZomers KoenZomers commented Jan 26, 2022

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

N/A

What is in this Pull Request ?

  • Added optional -UseBeta parameter to Get-PnPAzureADUser to force it to use the Microsoft Graph beta endpoint. This can be necessary when i.e. using -Select "PreferredDataLocation" to query for users with a specific multi geo location as this property is only available through the beta endpoint.
  • Changed the return type of Sync-PnPSharePointUserProfilesFromAzureActiveDirectory to return our own entity instead of the one returned by CSOM to decouple it and also allow for it to return the location where the import file has been uploaded to on SharePoint when using -WhatIf. This allows for the scenario where you would use -WhatIf to create the mapping JSON file, but not actually start the import yet because i.e. you want to modify the data in the mapping file first before you trigger the import process to start.
  • Added -Content option to Add-PnPFile which allows creating a new file on SharePoint Online and directly providing its textual content, i.e. to upload a log file of the execution

This PR is pending PnP Framework PR pnp/pnpframework#586 to be merged first.

@KoenZomers KoenZomers added the pending PnP Framework merge Waiting for a PR in PnP Framework to be merged first label Jan 26, 2022
@KoenZomers KoenZomers changed the title Allow force beta for get azure ad user Updates to Sync-PnPSharePointUserProfilesFromAzureActiveDirectory and Get-PnPAzureADUser Jan 26, 2022
@KoenZomers KoenZomers marked this pull request as ready for review January 26, 2022 12:47
@KoenZomers KoenZomers removed the pending PnP Framework merge Waiting for a PR in PnP Framework to be merged first label Feb 8, 2022
@gautamdsheth gautamdsheth merged commit 5c6b198 into pnp:dev Feb 8, 2022
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