Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete Bulk Users

Status
Not open for further replies.

CherylAnderton

Technical User
Nov 21, 2016
30
US
What is the best way to delete bulk users? My install is 10.0. I was considering a LAPI call, but I'm unfamiliar in the language. Does anyone have a LAPI to delete bulk users?
 
what is your version of Livelink Server ? LAPI is in a deprecated state and what client programming language do you intend to use
If you are new to LAPI see my postings here also I would advise you to just use WSAPI or CWS as they call it

If you are going to do this with LAPI these are the things you will run into
1)A very hard time finding the LAPI SDK these are the references that your code java or .net has to reference
2)In compatibility of lapi,VJ++ redistributable on many 64 bit things
3)LAPI gives everything IN/OUT as LLValue you will have to figure out its type and how to use it


A long time back when LAPI was active I had staged plenty of lapi code one of them was a bulk create user,all it would take is to change the call to a delete.

If you have Web Reports in your anvil this is next to trivial.

I just saw the Version in 10 LAPI will still work so here's how I would do it if WR was not there

1)Create a CSV file of all the userID's that you wish to delete.Note when you delete a user wherever this user was showing up in user and groups will show it as deleted I think,also his personal workspace may have to be cleaned.
2)In some C# or Java file throw the lapi references and see if you can get to livelink see examples
3)Take one username or userid of your csv and see using lapi you can find the user record.
4)Delete that user using a lapi method(intellisense will show you what you have to use)
5)If one delete is successful read the csv in a loop(google plenty of examples)

Here's an awesome WSAPI code to do member stuff





Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
I'm on version 10. We don't have webservers installed yet. We are disabling user after Active Directory sync and want to bulk delete the disabled users. We haven't turned on delete with AD sync due to we lost connection with AD and it deleted over 1000 users. What do you suggest?
 
Webservices run on webservers(typically co hosted with IIS where your livelink server website is running 10 minutes for a right administrator) or something separate like in a Tomcat both are very trivial things to a livelink admin.This deploying of webservices just gives you a method to download those proxies(in lapi world you were putting that in your program that kind).So once this webservices is done just go to this link
and download and play with the OT provided samples thay are excllent beginner material.

AF as you AD deleting stuff AD did not ,someone in your organization could have changed the query that is usually the result set provider to the livelink process.so many companies would keep the synchronization to just disable the users(less expensive if a AD cockup happens).Similar things are available with the new OTDS as well.

I am surprised that your org does not have WR I almost thought universally everyone has it.


Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top