Comments on: Choosing Between Graph API Requests or Graph SDK Cmdlets https://office365itpros.com/2024/06/05/microsoft-graph-powershell-sdk-api/?utm_source=rss&utm_medium=rss&utm_campaign=microsoft-graph-powershell-sdk-api Mastering Office 365 and Microsoft 365 Wed, 05 Jun 2024 18:53:28 +0000 hourly 1 By: Tony Redmond https://office365itpros.com/2024/06/05/microsoft-graph-powershell-sdk-api/#comment-12395 Wed, 05 Jun 2024 18:53:28 +0000 https://office365itpros.com/?p=65033#comment-12395 In reply to Anthony.

Well, if you go near OneDrive for a licensed account, provisioning happens immediately. I’m not sure I trust the output of Get-SPOSite to validate that provisioning has occurred… My understanding is that asking for provisioning notifies a background job that picks up tasks on a timer basis and runs them then. Maybe the timer is broken…

]]>
By: Anthony https://office365itpros.com/2024/06/05/microsoft-graph-powershell-sdk-api/#comment-12391 Wed, 05 Jun 2024 16:13:55 +0000 https://office365itpros.com/?p=65033#comment-12391 Thanks Tony. Tested and get the same outcome unfortunately – script completes and the output states it will provision the ODFB sites for the users but doesnt do anything back end.
Did this work as expected when testing your side? Beginning to think this is an issue with this MS tenant I am working with.

]]>
By: Tony Redmond https://office365itpros.com/2024/06/05/microsoft-graph-powershell-sdk-api/#comment-12390 Wed, 05 Jun 2024 14:36:59 +0000 https://office365itpros.com/?p=65033#comment-12390 In reply to Anthony.

Try https://github.com/12Knocksinna/Office365itpros/blob/master/Provision-OneDriveAccounts.PS1

Basically, the script finds existing OneDrive sites and builds a hash table from then. It then finds licensed users (for SharePoint Online, there isn’t a service plan for OneDrive anymore) and checks each user to detect if a OneDrive site exists. If no site is found, it provisions the site.

]]>
By: Anthony https://office365itpros.com/2024/06/05/microsoft-graph-powershell-sdk-api/#comment-12389 Wed, 05 Jun 2024 13:26:02 +0000 https://office365itpros.com/?p=65033#comment-12389 In reply to Tony Redmond.

TBH I havent had to force provisioning and usually the ODFB site is available soon after. For example, if i manually log into a user account and access ODFB, it spins up instantly for me to work with it.

Link to my code here for you – http://bit.ly/3VrAuGV

]]>
By: Tony Redmond https://office365itpros.com/2024/06/05/microsoft-graph-powershell-sdk-api/#comment-12388 Wed, 05 Jun 2024 12:10:48 +0000 https://office365itpros.com/?p=65033#comment-12388 In reply to Anthony.

Just thinking aloud. Years ago, OneDrive provisioning was slow. Now it seems to be pretty fast after a new account is created. Do we need a script to force provisioning? What’s your experience?

And a pointer to a script in GitHub is always appreciated.

]]>
By: Anthony https://office365itpros.com/2024/06/05/microsoft-graph-powershell-sdk-api/#comment-12387 Wed, 05 Jun 2024 10:35:15 +0000 https://office365itpros.com/?p=65033#comment-12387 Cheers Tony. I have a working script (Correct syntax anyway!) and runs as expected but doesnt do what is expected on the MS backend. Happy to share that with you if that helps.

]]>
By: Tony Redmond https://office365itpros.com/2024/06/05/microsoft-graph-powershell-sdk-api/#comment-12386 Wed, 05 Jun 2024 10:07:59 +0000 https://office365itpros.com/?p=65033#comment-12386 In reply to Anthony.

I’ve never seen this script before in my life. As you note, the use of the Get-MgUser cmdlet is incorrect. It looks as if the writer swapped out Get-MsolUser for Get-MgUser. I will try and look at this later today to see if a better way is possible.

]]>
By: Anthony https://office365itpros.com/2024/06/05/microsoft-graph-powershell-sdk-api/#comment-12385 Wed, 05 Jun 2024 10:00:02 +0000 https://office365itpros.com/?p=65033#comment-12385 In reply to Tony Redmond.

https://learn.microsoft.com/en-us/sharepoint/pre-provision-accounts#pre-provision-onedrive-for-all-licensed-users-in-your-organization

]]>
By: Tony Redmond https://office365itpros.com/2024/06/05/microsoft-graph-powershell-sdk-api/#comment-12384 Wed, 05 Jun 2024 09:27:20 +0000 https://office365itpros.com/?p=65033#comment-12384 In reply to Anthony.

Nope. I haven’t looked into it. What is the URL for the article?

]]>
By: Anthony https://office365itpros.com/2024/06/05/microsoft-graph-powershell-sdk-api/#comment-12382 Wed, 05 Jun 2024 09:14:27 +0000 https://office365itpros.com/?p=65033#comment-12382 Of some relevance as it relates to Graph but have you tested the bulk provisioning of ODFB recently? The MS Learn article looks wrong (it still references an MSOL attribute which doesnt exist for the user object via MS Graph that retrieves the user in the variable). I have updated the script myself for my purposes and it appears to run successfully as it did previously but the ODFB sites do not provision back end. Runs but does nothing.
Wondered if this was a known issue or something you had come across?

]]>