Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Adding new Roles #6522


User avatar
0
rvanwoezik created

Hi, i have add some new Roles, when i check the role in db, i see strange names like "c1b00f6028d6493794aa161f7e4de2fe" and normalized name like ''C1B00F6028D6493794AA161F7E4DE2FE" for displayname "Content Editor".

When i use var users = await UserManager.GetUsersInRoleAsync("Content Editor"); I don't get any result.


1 Answer(s)
  • User Avatar
    1
    aaron created
    Support Team

    You can set Name when creating Role.

    You should get users in Role by Name, not DisplayName.