You are viewing limited content. For full access, please sign in.

Question

Question

Delete all unlicensed users from LFDS

asked on April 28, 2021

Is there a way to delete all unlicensed users from LFDS? We are working with a system with more than 100,000 users and this number will only increase over time unless unlicensed users are cleared out. Is this possible?

 

I was attempting to do this via the SDK, but there appears to be a 1 minute timeout and no clear way to isolate only unlicensed users to unregister them.

0 0

Replies

replied on April 28, 2021

If your LFDS is setup to remove users deleted from Active Directory, they will be cleared out.

1 0
replied on April 29, 2021

Thank you for your response. Unfortunately, this doesn't solve the issue since they don't want these users removed from AD. They have more than one AD group and these users were moved into one that does not get synced with LFDS, so if we remove them from LFDS they will not get put back in LFDS on the next sync. But we still need to remove them from LFDS in the first place.

0 0
replied on April 29, 2021

OK I understand now, yeah it would be nice if LFDS allowed a way to select multiple accounts and delete them.  But the only way to do it within the GUI is one-by-one which would be time consuming if you had more than a handful to delete.  I can see why you're looking to use the SDK 

0 0
replied on April 29, 2021

LFDS does support shift-clicking to select up to 100 users at a time (a page worth), but this can still be slow if you are trying to delete thousands of users. We're looking into the best solution for this problem.

2 0
replied on April 29, 2021

Thank Chase, good to know

0 0
replied on April 30, 2021

Note: the general solution is to paginate the results if you have many users, but we don't currently have an example that translates directly to this.

Pagination is available for the past few releases, and looks something like this:
 

TrusteeListingHelper helper = new TrusteeListingHelper();
helper.PageSize = 1500; // Use max page size of 1500
helper.PageNumber = 1; // example of looking at a specific page

// gets the first page of 1500 users, based on the above settings
UserPaginationResult results = db.GetUserPagination(helper); 

 

1 0
replied on May 3, 2021

Hi Brianna,

 

Thanks for the code sample. I was already trying to use this, but no matter what I do, and even if I decrease the page size to 10, I hit the 1 minute timeout which I don't know how to increase:

 

"The request channel timed out while waiting for a reply after 00:01:00. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout."

0 0
replied on April 29, 2021

I have this automated through the LicenceManagerObjects.dll.  I look at the HR database, and if a terminated employee has a license, it deletes them.  If you're code-savvy, it really saves a lot of time!

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.