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

Update pre-provision-accounts.md #4224

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

Conversation

brhoyle
Copy link

@brhoyle brhoyle commented Jan 20, 2025

Script was no longer working due to changes in MgGraph command.

Changed Connect method to the MFA method instead of user name and password.

Since Get-MGUser no longer has a property called "IsLicensed" I replaced "$users = Get-MgUser -All | Where-Object { $_.islicensed -eq $true }" with
"$users = Get-MgUser -Filter 'assignedLicenses/$count ne 0' -ConsistencyLevel eventual -CountVariable unlicensedUserCount -All;"

Chanchal Jain "chja" provided new correct command.

Script was no longer working due to changes in MgGraph command.

Changed Connect method to the MFA method instead of user name and password.

Since Get-MGUser no longer has a property called "IsLicensed" I replaced "$users = Get-MgUser -All | Where-Object { $_.islicensed -eq $true }" 
with 
"$users = Get-MgUser -Filter 'assignedLicenses/$count ne 0' -ConsistencyLevel eventual -CountVariable unlicensedUserCount -All;"

Chanchal Jain "chja" provided new correct command.
Copy link
Contributor

Learn Build status updates of commit c461b96:

✅ Validation status: passed

File Status Preview URL Details
SharePoint/SharePointOnline/pre-provision-accounts.md ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

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.

2 participants