Ticket #532 (closed defect: fixed)
New members should be added to a default group
|Reported by:||landry||Owned by:||geonetwork-devel@…|
This is for GN 2.6.0, but i suppose it's still an issue in trunk.
I have my users stored in LDAP, so GN doesn't know them if they never connected. So the first time they connect to GN and their user is created in GN, they don't belong to any group, and the admin (me) needs to add them to a group so that they can post a metadata.
So there should be the possibility to set a 'default group' where all new users are when they connect.. or there should be the possibility to set/retrieve the group name (or group id) in a LDAP attr, as it's done for the profile.
So far, my workaround is to add them to the default group in my system through cron and a sql req like 'insert into usergroups(userid,groupid) select id as userid, 2 as groupid from users left join usergroups on usergroups.userid=users.id where userid is null;'