How do I archive a user using Perl+REST+OSLC?
Hi, I'm writing some utilities in Perl to help manage our CLM 4.0.7 implementation.
So far I've been able to create work items and now I'm trying to archive users who are no longer present in LDAP and also to report their unresolved work items and their repository workspaces.
I can list the users, see if they're already archived and look up against LDAP, but I'm struggling to understand quite what structure to post to what URL to archive a user. If anyone can give me a steer I'd be grateful.
Accepted answer
I doubt that there is published API to do so. If you really need to do it from a script, you can monitor the network traffic in the browser (Chrome or Firebug) and capture the request (likely an internal API) for archiving a user, then mimic the behavior in your script.
Comments
2 other answers
There is a Java Client Library API that could be used. Examples:
https://rsjazz.wordpress.com/2012/10/12/changing-the-jazz-user-id-using-the-rtc-plain-java-client-libraries/
Archiving is pretty much in the same API
Also
https://rsjazz.wordpress.com/2013/01/08/maintaing-user-photos-with-the-plain-java-client-libraries/
In the background, this is using the REST API as well, but there is no published REST API I am aware of.
https://rsjazz.wordpress.com/2012/10/12/changing-the-jazz-user-id-using-the-rtc-plain-java-client-libraries/
Archiving is pretty much in the same API
Also
https://rsjazz.wordpress.com/2013/01/08/maintaing-user-photos-with-the-plain-java-client-libraries/
In the background, this is using the REST API as well, but there is no published REST API I am aware of.