-1

how i login my app with multiple user which is in my Azure active Directory?

On azure I created Azure Active B2c Directory. Then Register App. Then create key. Then Add User in Azure Active Directory. Then assign that user to my Register app.

But while login with user email and password to my app I get Error.

AADSTS50020: User account from identity provider 'live.com' does not exist in tenant and cannot access the application in that tenant.

I use web api in backed.

and AngularJS in front end.

how i login my app with multiple user which is in my Azure active Directory? also How i add role to User?

Heena
  • 17
  • 3
  • How did you add your MSA (Microsoft Account) into B2C tenant? Just use "+New guest user"? – Allen Wu Mar 03 '20 at 07:46
  • No..+New User. and then assign Uset to app through option Enterprice application.But User is not able to login application to which i assign. – Heena Mar 04 '20 at 10:25
  • Hi Heena, do you have a chance to look into my answer? If it's helpful, you can accept it as answer( click on the check mark beside the answer to toggle it from greyed out to filled in.). This can be beneficial to other community members. Thank you. – Allen Wu Mar 06 '20 at 08:31

2 Answers2

0

Live.com doesn't belong to your tenant and it is a personal mail for the user. you need to add the user with let's say username@live.com to the tenant as a guest user and the user has to click the verify link which have been sent to his personal mail to become a guest user in Azure AD.

The Assign administrator and non-administrator roles to users with Azure Active Directory documents help you in adding roles to the user.

Hari Krishna
  • 2,372
  • 2
  • 11
  • 24
  • Thank you for Reply.But I Know that guest User is able to login application.and it happen in my case also.But I want to User which I added and assign to my enterprise app want to login with that User. For Role I want to assign app Role to User. – Heena Mar 04 '20 at 04:49
  • Hi @Heena, Please refer Microsoft document which can help https://learn.microsoft.com/en-us/azure/active-directory/manage-apps/assign-user-or-group-access-portal – Hari Krishna Mar 04 '20 at 17:14
0

Application roles are not currently supported in Azure AD B2C. See a similar post here.

Azure AD B2C supports custom claims, which can be used to add app based roles. See Define custom attributes in Azure Active Directory B2C.

A post on User Voice for your reference.

Allen Wu
  • 15,529
  • 1
  • 9
  • 20