How to select a particular user role which could be flagged There are two Roles:


Authenticated
Artist


I have created a flag with flag type "USER".
The flag is used so that the Authenticated Users can follow the Artists.  

As the flag is type of user, an authenticated user can even follow another authenticated user.  

How do I restrict the flagging to be applied only to the Artist? i.e the authenticated user can only follow an Artist and no user of any other role.
You can achieve your requirement by following below steps.


Create a view of type User.


Add a relationship to Flag.


Now add Flags: Flag link field + extra field you want to display
Finally add a FILTER CRITERIA i.e. User: Roles and select Artist user role.