I am writing a test application which uses AAD to get acquire token, and this call succeeds for one user with TenantId "abc" but fails for another user with tenantId "xyz" with the message:
The user or administrator has not consented to use the application with ID
f5986c14-cdb9-4e68-a89e-119d15b33afc
. Send an interactive authorization request for this user and resource.
Please note:
I have created one native application in my AAD
I have added those users from another tenant into the Users list of the directory as User role and also, we granted the permissions for the native app to all the users in the directory in windows azure management portal Screenshot Here