Hello @Joseph Patrick ,
Thanks for reaching out and sorry for delayed response.
I had tried same instructions from the link, but it wasn't working. Therefore, I made small changes in step number 2 , added the following parameter -ContextScope Process
along with Connect-Graph
as shown below and followed remaining instructions as per the link, which seems to be working for me.
2.Connect to Microsoft Graph
Grant initial consent:
Connect-Graph -Scopes @("Application.Read.All", "Group.Read.All", "Policy.Read.All", "RoleManagement.Read.Directory", "User.Read.All") -ContextScope Process
------------------------------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.