Hi,
I’ve asked here before about how to add users via the cli. I did find a way by using the registration plugin to assign a default group and the User service plugin to allow creating users via web interface (which I submit with lynx). This allows us to add users and have them assigned to a group automatically.
N ow the company wants to have more than one group of users - production and test. With the User Service plugin I can specify
type
Required
The admin service required.
Possible values are add, delete, update
secret
required
The secret key that allows access to the User Service.
jid
required for delete and update operations
The bare JID (address) of the user to be administered(ie includes @yourdomain.com).
username
required for add operation
The username of the new user. ie the part before the @ symbol.
password
required for add operation
The password of the new user or the user being updated.
name
optional
The display name of the new user or the user being updated.
optional
But I can’t specify which group the user should belong to. The Registration plugin allows me to assign a default group and as long as I only
have one group we’re good to go. Problem is since I’m not specifying the group for the user everyone is in the default group. Does anyone
know a way to create a user AND specify group via web or a script?
Maybe if the User Service plugin would specify group it would be good. Maybe there’s another way?
Thanks,
Grant