Base solution for your next web application
Open Closed

RemoveFromRole doesn't Remove Role ! #208


User avatar
0
behiunforgiven created

I use this function to remove roles, why user roles remain ?

public async Task DeleteRolesAsync(List<string> deleteList, long userId)
       {
           
               foreach (var roleName in deleteList)
               {
                   IdentityResult deletionResult = await _userManager.RemoveFromRoleAsync(userId, roleName);
               }
           
       }

2 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Can you open an issue for that on github (<a class="postlink" href="https://github.com/aspnetboilerplate/module-zero/issues/new">https://github.com/aspnetboilerplate/mo ... issues/new</a>)? You may use SetRoles method for now.

  • User Avatar
    0
    behiunforgiven created

    <cite>hikalkan: </cite> Can you open an issue for that on github (<a class="postlink" href="https://github.com/aspnetboilerplate/module-zero/issues/new">https://github.com/aspnetboilerplate/mo ... issues/new</a>)? You may use SetRoles method for now.

    Thank You SetRoles works Great !