I am using .Net Core
App with hosting it on Azure Portal
. Now at some place I need to use Get the detail of logged in User (Active Directory
user) in the application. So for that I am using Microsoft Graph API
. So to setup this permission I am using Get-AzureADServiceAppRoleAssignment
command. It is working fine when I run this command with Global Administrator
account access. But it throws error when I used it without Global Administrator
account access.
Error: Service_InternalServerError
. as shown in below image.
Anyone have an idea or suggestions how to get rid of this error, and Is there any way to run this script without Global Admin access?
Any help or suggestions will be highly appreciated ! Thanks