Is there an api to unregister a user from RAM ?
I tried the following
Option 1: ********************************************************* RAMUser user = session.getUser(email); session.remove(user); session.put(user, new RAMStatusMonitor()); ********************************************************* Option 2: ********************************************************* RAMUser user = session.getUser(email); user.setAction(RAMAction.DELETE) session.put(user, new RAMStatusMonitor()); ********************************************************* Both the options do not work. Can you please tell me how i can achieve this ? |
2 answers
You can not "remove/delete" user registrations.
There is no API to "register" a user ... a user will be registered once they are logged in from the UI. I can't remember, but it may be that if you are using the Admin uid, and onBehalfOfUserId Session... it may register that user.
|
There is no remove user.
If you are using LDAP then when they are removed from LDAP the next time RAM does a user sync (which is by default every Saturday) the user will be marked as Not Found. But they are not removed from RAM. Since they are no longer in LDAP they cannot log in either. If you are using the filesystem users then you can remove the user from the file and restart Websphere. Now the user cannot log in, though the userid stays in RAM. Comments
Manjiri Kamat
commented Jun 11 '13, 12:37 a.m.
I used the following code to register a user.
There is no way to unregister user. There is no API, there is no UI. None.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
I am using RAM 7.5.1.1.