Forum Discussion
- AdamNKhoros Oracle
If you have sufficient permissions (i.e. Admin or moderator), you can search for users by e-mail address in the user search. Though if you have a lot of users, that could become pretty tedious.
For a more programattic approach, there is a restapi method to retreive a user by e-mail address:
/restapi/vc/users/email/[email]
From there, you can obtain the user id and/or login name for each user.
Once you have the user id and/or login name, you have a few different approaches...
- You can continue using the REST API to add the roles:
/restapi/vc/roles/name/[role_name]/users/add?role.user=/users/id/[user_id]
- Or, you can use the role import feature in the admin: Community Admin > Users > Import Roles
I hope this helps!
- You can continue using the REST API to add the roles:
Related Content
- 11 years ago
- 11 years ago
- 12 years ago