<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Get Entra ID PIM Role Assignment Using Graph API	</title>
	<atom:link href="https://thesysadminchannel.com/get-entra-id-pim-role-assignment-using-graph-api/feed/" rel="self" type="application/rss+xml" />
	<link>https://thesysadminchannel.com/get-entra-id-pim-role-assignment-using-graph-api/</link>
	<description>Documenting My Life as a System Administrator</description>
	<lastBuildDate>Wed, 10 Jul 2024 14:17:23 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>
		By: Michael B. Smith		</title>
		<link>https://thesysadminchannel.com/get-entra-id-pim-role-assignment-using-graph-api/#comment-31650</link>

		<dc:creator><![CDATA[Michael B. Smith]]></dc:creator>
		<pubDate>Wed, 10 Jul 2024 14:17:23 +0000</pubDate>
		<guid isPermaLink="false">https://thesysadminchannel.com/?p=5023#comment-31650</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://thesysadminchannel.com/get-entra-id-pim-role-assignment-using-graph-api/#comment-26505&quot;&gt;Chris&lt;/a&gt;.

This is a bug in the script.

There is no scope named ‘Policy.Read.AuthenticationMethod’, the proper scope name is ‘Policy.ReadWrite.AuthenticationMethod’.

This is the line causing the error:

        $ConnectionGraph.Scopes = $ConnectionGraph.Scopes -replace &quot;write&quot;,&quot;&quot; &#124; select -Unique

It appears that what the author was trying to do was simplify the next block of code, but he failed to consider that some scopes may require the “write” section. Just comment the line out. (Add a ‘#’ in front of the ‘$’.) That worked for me.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://thesysadminchannel.com/get-entra-id-pim-role-assignment-using-graph-api/#comment-26505">Chris</a>.</p>
<p>This is a bug in the script.</p>
<p>There is no scope named ‘Policy.Read.AuthenticationMethod’, the proper scope name is ‘Policy.ReadWrite.AuthenticationMethod’.</p>
<p>This is the line causing the error:</p>
<p>        $ConnectionGraph.Scopes = $ConnectionGraph.Scopes -replace &#8220;write&#8221;,&#8221;&#8221; | select -Unique</p>
<p>It appears that what the author was trying to do was simplify the next block of code, but he failed to consider that some scopes may require the “write” section. Just comment the line out. (Add a ‘#’ in front of the ‘$’.) That worked for me.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chris		</title>
		<link>https://thesysadminchannel.com/get-entra-id-pim-role-assignment-using-graph-api/#comment-26506</link>

		<dc:creator><![CDATA[Chris]]></dc:creator>
		<pubDate>Thu, 21 Mar 2024 03:46:27 +0000</pubDate>
		<guid isPermaLink="false">https://thesysadminchannel.com/?p=5023#comment-26506</guid>

					<description><![CDATA[What have i missed here Paul?

Error: PS C:\Windows\System32&#062; Get-MgPimRoleAssignment -RoleName &#039;Global Administrator&#039;
InvalidOperation: The property &#039;Scopes&#039; cannot be found on this object. Verify that the property exists and can be set.]]></description>
			<content:encoded><![CDATA[<p>What have i missed here Paul?</p>
<p>Error: PS C:\Windows\System32&gt; Get-MgPimRoleAssignment -RoleName &#8216;Global Administrator&#8217;<br />
InvalidOperation: The property &#8216;Scopes&#8217; cannot be found on this object. Verify that the property exists and can be set.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chris		</title>
		<link>https://thesysadminchannel.com/get-entra-id-pim-role-assignment-using-graph-api/#comment-26505</link>

		<dc:creator><![CDATA[Chris]]></dc:creator>
		<pubDate>Thu, 21 Mar 2024 03:45:20 +0000</pubDate>
		<guid isPermaLink="false">https://thesysadminchannel.com/?p=5023#comment-26505</guid>

					<description><![CDATA[another error

PS C:\Windows\System32&#062; Get-MgPimRoleAssignment -Verbose
VERBOSE: GET https://graph.microsoft.com/beta/roleManagement/directory/roleDefinitions with 0-byte payload
Invoke-MgGraphRequest: InteractiveBrowserCredential authentication failed: AADSTS650053: The application &#039;Microsoft Graph Command Line Tools&#039;
asked for scope &#039;Policy.Read.AuthenticationMethod&#039; that doesn&#039;t exist on the resource
&#039;00000003-0000-0000-c000-000000000000&#039;. Contact the app vendor. Trace ID: 06b08658-cc2a-47b9-8206-b949cae25e00
Correlation ID: bc224d57-e9b6-4ff5-884c-c3c94b769878 Timestamp: 2024-03-21 03:41:57Z]]></description>
			<content:encoded><![CDATA[<p>another error</p>
<p>PS C:\Windows\System32&gt; Get-MgPimRoleAssignment -Verbose<br />
VERBOSE: GET <a href="https://graph.microsoft.com/beta/roleManagement/directory/roleDefinitions" rel="nofollow ugc">https://graph.microsoft.com/beta/roleManagement/directory/roleDefinitions</a> with 0-byte payload<br />
Invoke-MgGraphRequest: InteractiveBrowserCredential authentication failed: AADSTS650053: The application &#8216;Microsoft Graph Command Line Tools&#8217;<br />
asked for scope &#8216;Policy.Read.AuthenticationMethod&#8217; that doesn&#8217;t exist on the resource<br />
&#8216;00000003-0000-0000-c000-000000000000&#8217;. Contact the app vendor. Trace ID: 06b08658-cc2a-47b9-8206-b949cae25e00<br />
Correlation ID: bc224d57-e9b6-4ff5-884c-c3c94b769878 Timestamp: 2024-03-21 03:41:57Z</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chris		</title>
		<link>https://thesysadminchannel.com/get-entra-id-pim-role-assignment-using-graph-api/#comment-26504</link>

		<dc:creator><![CDATA[Chris]]></dc:creator>
		<pubDate>Thu, 21 Mar 2024 03:24:40 +0000</pubDate>
		<guid isPermaLink="false">https://thesysadminchannel.com/?p=5023#comment-26504</guid>

					<description><![CDATA[Error:
PS C:\temp&#062; Get-MgPimRoleAssignment -RoleName &#039;Global Administrator&#039;
InvalidOperation: The property &#039;Scopes&#039; cannot be found on this object. Verify that the property exists and can be set.]]></description>
			<content:encoded><![CDATA[<p>Error:<br />
PS C:\temp&gt; Get-MgPimRoleAssignment -RoleName &#8216;Global Administrator&#8217;<br />
InvalidOperation: The property &#8216;Scopes&#8217; cannot be found on this object. Verify that the property exists and can be set.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Paul Contreras		</title>
		<link>https://thesysadminchannel.com/get-entra-id-pim-role-assignment-using-graph-api/#comment-25711</link>

		<dc:creator><![CDATA[Paul Contreras]]></dc:creator>
		<pubDate>Fri, 01 Mar 2024 21:41:29 +0000</pubDate>
		<guid isPermaLink="false">https://thesysadminchannel.com/?p=5023#comment-25711</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://thesysadminchannel.com/get-entra-id-pim-role-assignment-using-graph-api/#comment-25710&quot;&gt;Raymond Martin&lt;/a&gt;.

Post/Script has been updated for scopes.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://thesysadminchannel.com/get-entra-id-pim-role-assignment-using-graph-api/#comment-25710">Raymond Martin</a>.</p>
<p>Post/Script has been updated for scopes.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Raymond Martin		</title>
		<link>https://thesysadminchannel.com/get-entra-id-pim-role-assignment-using-graph-api/#comment-25710</link>

		<dc:creator><![CDATA[Raymond Martin]]></dc:creator>
		<pubDate>Fri, 01 Mar 2024 21:01:45 +0000</pubDate>
		<guid isPermaLink="false">https://thesysadminchannel.com/?p=5023#comment-25710</guid>

					<description><![CDATA[What is the minimum Scope or rights we need to run this?
I mean Connect-MgGraph -Scopes &quot;minimum-rights&quot; -tenantID 1234]]></description>
			<content:encoded><![CDATA[<p>What is the minimum Scope or rights we need to run this?<br />
I mean Connect-MgGraph -Scopes &#8220;minimum-rights&#8221; -tenantID 1234</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
