Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for drush user-add-role (urol) #204

Open
herbdool opened this issue Oct 21, 2019 · 1 comment
Open

Add support for drush user-add-role (urol) #204

herbdool opened this issue Oct 21, 2019 · 1 comment

Comments

@herbdool
Copy link

herbdool commented Oct 21, 2019

Duplicate functionality of https://drushcommands.com/drush-8x/user/user-add-role/, adding roles to specified user accounts.

@totten
Copy link

totten commented Nov 5, 2019

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";

(Adapted from backdrop-demo/install.sh @ 8b2067f)

@jackaponte jackaponte changed the title Add support for drush user-add-role Add support for drush user-add-role (urol) Feb 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants