New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
user/nicolasmartin/AccountManagement – NEMO
wiki:user/nicolasmartin/AccountManagement

Version 1 (modified by nicolasmartin, 5 years ago) (diff)

--

Account Management

Retrieve from the terminal the ID list of users to add from User Manager

psql -c "
SELECT DISTINCT(sid) 
  FROM session_attribute 
 WHERE authenticated = 1 
EXCEPT SELECT sid 
         FROM session_attribute 
        WHERE name = 'enabled';"
| for sid in `cat -`; do
   [ $( grep ^$sid ~/auth/trac.passwd) ] && echo $sid;
done