You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm certain there's a better PHP function to call (e.g. firing any needful hooks) -- but just as a reference point, for civicrm infra/ops#906, we used this SQL as quick-n-dirty work-around:
INSERT IGNORE INTO users_roles (uid,role)
SELECT uid, "the_role_name"FROM users
WHERE name ="the_user_name";
Duplicate functionality of https://drushcommands.com/drush-8x/user/user-add-role/, adding roles to specified user accounts.
The text was updated successfully, but these errors were encountered: