Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The attached patch provides 4 drush commands:
* domain-user-domains : lists the domains a given user is assigned to
* domain-user-users : lists the users a given domain is assigned to
* domain-user-assign : assigns a given user to a given domain
* domain-user-unassign : unassigns a given user from a given domain
Comment | File | Size | Author |
---|---|---|---|
#3 | 1595134-domain-user-commands.patch | 6.23 KB | agentrickard |
#1 | domain-user-commands-1595134.patch | 5.88 KB | benoit.pointet |
Comments
Comment #1
benoit.pointet CreditAttribution: benoit.pointet commentedAnd here's the patch.
Comment #2
agentrickardPlease set patches to "needs review".
Looks like fun!
Comment #3
agentrickardRevised patch. Some notes.
The last two items are documented in the developer's guide.
New patch needs review.
Questions:
Comment #4
benoit.pointet CreditAttribution: benoit.pointet commentedNew patch at #3 looks good.
What aliases did you have in mind?
IMHO, allowing multiples users/domains to be passed is a nice-to-have, it can easily be achieved with a shell script.
b.
Comment #5
agentrickardAny useful alias, like du-add or similar.
Comment #6
benoit.pointet CreditAttribution: benoit.pointet commentedI guess such aliases should be added for all domain drush commands as a coherent whole, and not only for that one.
Comment #7
agentrickardRight. The existing commands should already have aliases, where appropriate.