Hi,

The best way to achieve that would be to use the 
"authentication-password.login.specialgroup" setting you found.

Technically, with that setting in place anyone who can successfully login to 
your DSpace​ will be automatically added to the specified group each time they 
login.  So, anyone who logs in is like a "permanent" member of that group (as 
they will be a member each time they login).   But, as I mentioned they won't 
appear in that group when you list the members.

I'm not able to think of another way to do this in DSpace out-of-the-box.  But, 
maybe others will have ideas if they've found a way to achieve this through a 
custom script or similar.

Tim



________________________________
From: Shoun Paul <shounp...@fccollege.edu.pk>
Sent: Wednesday, November 30, 2022 1:46 AM
To: Tim Donohue <tim.dono...@lyrasis.org>
Cc: DSpace Technical Support <dspace-tech@googlegroups.com>
Subject: Re: [dspace-tech] Re: auto assign group to self registered users.

Greetings,
Thanks for this clarification. I want to ask if there is any way then by which 
if any user registers himself through self registration method, User will 
automatically assign a group as a permanent member of that group?

On Wed, Nov 30, 2022 at 2:45 AM 'Tim Donohue' via DSpace Technical Support 
<dspace-tech@googlegroups.com<mailto:dspace-tech@googlegroups.com>> wrote:
Hi,

I suspect you might be misunderstanding how a "special group" works in DSpace.  
When using that "specialgroup" setting, a user will be added to that group 
*only while logged in*.  So, they are a temporary member of that group _only 
for their logged in session_.  They will never appear in the Group as a real 
member, because special groups are used only during your authenticated session.

So, to test this is working, you'd want to simply login & verify that your 
"Profile" shows that you are a member of the "new" group (it should be in your 
list of all groups you are a member of).  However, if you browse to that "new" 
group as an Admin, you'll never see yourself listed there.

Hopefully this helps explain DSpace's behavior with regards to "special groups".

Tim

On Tuesday, November 29, 2022 at 6:20:53 AM UTC-6 
shou...@fccollege.edu.pk<mailto:shou...@fccollege.edu.pk> wrote:
Greetings,
I have to make such settings that every new user that comes up through the self 
registration process is automatically added to a special group.

I have tried the solution with both lines of code one by one, and here "new" is 
my group name in the Dspace.
  authentication-password.login.specialgroup = new
  authentication.password.login.specialgroup = new

but, still I can't find new self user registrations in the respective group.
where I am doing wrong anyone could guide me on this issue.

Location: C:\dspace\config\modules
Files Name: authentication-password.cfg
Dspace version: 6.3
--
Best Regards.

Shoun Paul
Database & Software Application Associate
IT. Services Dept.
Forman Christian College
(A Chartered University)
Lahore, Pakistan.54600
Ext: 256
www.fccollege.edu.pk<http://www.fccollege.edu.pk/>

--
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
dspace-tech+unsubscr...@googlegroups.com<mailto:dspace-tech+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/9948d8a7-291a-42e7-b6b4-f3688d03b465n%40googlegroups.com<https://groups.google.com/d/msgid/dspace-tech/9948d8a7-291a-42e7-b6b4-f3688d03b465n%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
Best Regards.

Shoun Paul
Database & Software Application Associate
IT. Services Dept.
Forman Christian College
(A Chartered University)
Lahore, Pakistan.54600
Ext: 256
www.fccollege.edu.pk<http://www.fccollege.edu.pk/>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/PH0PR22MB32747434B509034622D8E5BBED159%40PH0PR22MB3274.namprd22.prod.outlook.com.

Reply via email to