Reputation: 113
I have the following setup:
T-1
and T-2
A
registered in T-1
.
"availableToOtherTenants": true
and "signInAudience": "AzureADandPersonalMicrosoftAccount"
U-2
for T-2
.U-2
is invited to T-1
as a guest and accepts.U-2
attempts to provide admin consent for the app in T-1
(A
) via the url https://login.microsoftonline.com/${T-1 guid}/adminconsent?${params}
At this point, I get redirected to an error page with the following info:
A-1
needs permission to access resources in your organization that only an admin can grant. Please ask an admin to grant permission to this app before you can use it.
FYI I had Advanced diagnostics enabled.
Any clues on what I could try next?
Upvotes: 1
Views: 223
Reputation: 1340
It sounds like you are trying to use U-2 to do admin consent who is not an admin in T-1.
U-2 attempts to provide admin consent for the app in T-1
Only admins in T-1 can provide admin consent in T-1. In your case that would be U-1 I believe.
Upvotes: 1