Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Altering User Privileges - Login Enabled
Nick_Innes_(apacsuser4_-_(deleted))
Hi,I need to read a user's privileges and if Login Enabled is false then set it to true without altering any other privileges that might be set.I also need to do the reverse, e.g set Login Enabled to false if it is true without altering the other privileges.I need to do this in Java has anyone got a working example of this type of thing?Many Thanks
Find more posts tagged with
Comments
Nair_Krishnankutty_(nairkrishnankutty_-_(deleted))
What yoy want to do is bitwise arithmetic.Here's a sampleI tried a awhile back.Maybe somebody might give you a better sample.But I am hoping this maight give you some insight.YOU are using this at your own risk.
Nick_Innes_(apacsuser4_-_(deleted))
Thanks for that.It is okay to add the login privilege and then remove it, the problem is that it doesn't take into account the existing privileges.I need it to work so that the existing privileges are not effected. E.g. if the user has admin privileges they will never be effected, all that the code would ever do is add/remove the ability to login and always leave the existing privileges untouched.Does anyone else have any examples of this or someone from OpenText? I'm sure someone else must have had this requirement. I've looked in the documentation but really can't find anything of use on this.Thanks