OrchardCMS/OrchardCore

How to get all users who have no role assigned?

Open

#2,987 opened on Jan 8, 2019

View on GitHub
 (21 comments) (0 reactions) (0 assignees)C# (6,998 stars) (2,288 forks)batch import
good first issue

Description

GetUsersInRoleAsyn("Role_Name") can only get users with the role: Role_Name But how to get all users who have no role assigned?

Thanks!

Contributor guide