Comments on: Connecting to the Microsoft Graph Using the PowerShell SDK https://practical365.com/connect-microsoft-graph-powershell-sdk/ Practical Office 365 News, Tips, and Tutorials Thu, 02 May 2024 15:38:21 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: <div class="apbct-real-user-wrapper"> <div class="apbct-real-user-author-name">Tony Redmond</div> <div class="apbct-real-user-badge" onmouseover=" let popup = document.getElementById('apbct_trp_comment_id_293351'); popup.style.display = 'inline-flex'; "> <div class="apbct-real-user-popup" id="apbct_trp_comment_id_293351"> <div class="apbct-real-user-title"> <p class="apbct-real-user-popup-header">The Real Person!</p> <p class="apbct-real-user-popup-text">Author <b>Tony Redmond</b> acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.</p> </div> </div> </div> </div> https://practical365.com/connect-microsoft-graph-powershell-sdk/#comment-293351 Thu, 02 May 2024 15:38:21 +0000 https://practical365.com/?p=53483#comment-293351 In reply to Chris.

The error indicates that the service principal for the Microsoft Graph Command Line Tools enterprise app has not been authorized in the tenant. I don’t know what process apps go through to allow them to run in the context of a GDAP tenant. I guess it is something covered in the GDAP documentation https://learn.microsoft.com/en-us/partner-center/gdap-introduction?WT.mc_id=M365-MVP-9501 but as I don’t have a GDAP tenant to play with, I can’t test or do anything else.

]]>
By: Chris https://practical365.com/connect-microsoft-graph-powershell-sdk/#comment-293349 Thu, 02 May 2024 14:38:58 +0000 https://practical365.com/?p=53483#comment-293349 In reply to Tony Redmond.

Hi Tony,
How does this work with GDAP as I receive the error AADSTS90099 when trying to connect to my client tenants?
.
AADSTS90099: The application ’14d82eec-204b-4c2f-b7e8-296a70dab67e’ (Microsoft Graph Command Line Tools) has not been authorized in the tenant ”. Applications must be authorized to access the customer tenant before partner delegated administrators can use them.
.
In the customer tenant, the Enterprise Application is there and is being used by customer accounts, but is there something that needs to be done to enable for partner GDAP admins?

]]>
By: <div class="apbct-real-user-wrapper"> <div class="apbct-real-user-author-name">Tony Redmond</div> <div class="apbct-real-user-badge" onmouseover=" let popup = document.getElementById('apbct_trp_comment_id_291035'); popup.style.display = 'inline-flex'; "> <div class="apbct-real-user-popup" id="apbct_trp_comment_id_291035"> <div class="apbct-real-user-title"> <p class="apbct-real-user-popup-header">The Real Person!</p> <p class="apbct-real-user-popup-text">Author <b>Tony Redmond</b> acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.</p> </div> </div> </div> </div> https://practical365.com/connect-microsoft-graph-powershell-sdk/#comment-291035 Tue, 26 Mar 2024 12:43:09 +0000 https://practical365.com/?p=53483#comment-291035 In reply to Robert.

The MSOL cmdlets are based on an old (first generation) implementation of licensing technology created when Office 365 was first launched. Things are very different today. The suite supports over 400 million users and there are many more licenses and service plans in use. Microsoft moved to a new licensing plaform and that’s when the MSOL and AzureAD licensing cmdlets stoppe working.

]]>
By: Robert https://practical365.com/connect-microsoft-graph-powershell-sdk/#comment-290976 Mon, 25 Mar 2024 20:32:09 +0000 https://practical365.com/?p=53483#comment-290976 I cant believe Microsoft completely disabled the Set-MSOLUserLIcnese options and is expecting everyone to just Graph? What Microsoft? was it to easy to use the MSOL cmdlets?

]]>
By: <div class="apbct-real-user-wrapper"> <div class="apbct-real-user-author-name">Tony Redmond</div> <div class="apbct-real-user-badge" onmouseover=" let popup = document.getElementById('apbct_trp_comment_id_285491'); popup.style.display = 'inline-flex'; "> <div class="apbct-real-user-popup" id="apbct_trp_comment_id_285491"> <div class="apbct-real-user-title"> <p class="apbct-real-user-popup-header">The Real Person!</p> <p class="apbct-real-user-popup-text">Author <b>Tony Redmond</b> acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.</p> </div> </div> </div> </div> https://practical365.com/connect-microsoft-graph-powershell-sdk/#comment-285491 Thu, 11 Jan 2024 11:00:50 +0000 https://practical365.com/?p=53483#comment-285491 In reply to Harry.

I’m sure that if you did a search, you’d find many helpful articles like https://practical365.com/create-new-microsoft-365-account-powershell/ and https://practical365.com/azure-ad-account-creation-standardization/

]]>
By: Harry https://practical365.com/connect-microsoft-graph-powershell-sdk/#comment-285490 Thu, 11 Jan 2024 10:58:12 +0000 https://practical365.com/?p=53483#comment-285490 Hi sir,

How create new user with details at a time. Please share PowerShell script.

1. Email id and license, first name ,last name ,display name, title, phone number
2.Reporting manager
3.Groups
4.MFA

]]>
By: <div class="apbct-real-user-wrapper"> <div class="apbct-real-user-author-name">Tony Redmond</div> <div class="apbct-real-user-badge" onmouseover=" let popup = document.getElementById('apbct_trp_comment_id_275464'); popup.style.display = 'inline-flex'; "> <div class="apbct-real-user-popup" id="apbct_trp_comment_id_275464"> <div class="apbct-real-user-title"> <p class="apbct-real-user-popup-header">The Real Person!</p> <p class="apbct-real-user-popup-text">Author <b>Tony Redmond</b> acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.</p> </div> </div> </div> </div> https://practical365.com/connect-microsoft-graph-powershell-sdk/#comment-275464 Sun, 24 Sep 2023 17:56:32 +0000 https://practical365.com/?p=53483#comment-275464 In reply to Ricardo Goncalves.

Is the answer not in https://practical365.com/microsoft-365-license-graph-sdk/?

Bulk assignment is dealt with here https://practical365.com/bulk-license-assignment-with-the-microsoft-graph-powershell-sdk/. It’s just a matter of using the command to remove licenses as you process each account in the loop.

]]>
By: Ricardo Goncalves https://practical365.com/connect-microsoft-graph-powershell-sdk/#comment-275463 Sun, 24 Sep 2023 17:42:31 +0000 https://practical365.com/?p=53483#comment-275463 In reply to Tony Redmond.

Hi Tony

I am new to Microsoft Graph and am hoping you could maybe assist me.
I am looking for a script to be able to remove O365 License from bulk users by importing a CSV file.
Is this possible to do.
I have found a way to add a O365 License to bulk users via a CSV file but am battling to find a way to remove the License from bulk users
Your assistance would be greatly appreciated.

]]>
By: Tony Redmond https://practical365.com/connect-microsoft-graph-powershell-sdk/#comment-272695 Thu, 24 Aug 2023 20:18:08 +0000 https://practical365.com/?p=53483#comment-272695 In reply to Petey.

Use Connect-MgGraph -TenantId xxx-xxx-xxx-xxx (insert tenant identifier of the tenant you want to connect to)

]]>
By: Petey https://practical365.com/connect-microsoft-graph-powershell-sdk/#comment-272694 Thu, 24 Aug 2023 20:11:04 +0000 https://practical365.com/?p=53483#comment-272694 If i have a partner center account, how can i connect and access all my customers using graph api powershell sdk?

]]>