Adobe Connect User Community
Menu

#1 2009-10-13 16:11:32

**_infoseci_**

Mass delete users?

Does anyone know how to delete users in mass? A customer had given us the wrong list of users, and we imported them using the import feature. How can we delete these users?

Offline

#2 2009-10-20 01:18:46

**_eomedia_**

Re: Mass delete users?

The easiest way if you know who everyone is, is to simply go into the user accounts and multiple select (hold down select or control key and choose user accounts) and then DELETE them.  This assumes that you can easily identify the bad user accounts, or you don't have thousands in your list to search through.

If you believe that method will be too complex, or take too long you can also delete those accounts with a little simple programming using the API. 

To use this action you must have Administrator privilege and you simply specify multiple principal-id parameters to your call.  Or  if you'd prefer you can loop over a list of principal-id values from your list and delete them that way.

Here is the action call.

http://server_name/api/xml?action=principals-delete&principal-id=integer&session=BreezeSessionCookieValue

If you don't have the principal-id values from your list you would need to get those with a different action call.

https://example.com/api/xml?action=prin … -name=jazz doe  ( you could also use filter-login or filter-email in place of filter-name)

You should be able to do what you need with one of those methods, however there may be another method which I'm just not aware of.

Ryan Smith
www.conferenceEdge.com

Offline

#3 2009-10-21 18:39:33

**_quinn_**

Re: Mass delete users?

To add to Ryan's response, if you have the list of users (which should contain the email addresses), you could get the principal-ids like so:

1. Read in list of users.
2. For each user, call http://example.com/api/xml?action=princ … tUserEmail
3. Get the XML response and parse out the principalId.   It will look something like this:

<results>
<status code="ok"/>
<principal-list>
<principal principal-id="726231507" account-id="725968704" type="user" has-children="false" is-primary="false" is-hidden="false" training-group-id="">
<name>Quinn Wong</name>
<login>qwong@adobe.com</login>
<email>qwong@adobe.com</email>
</principal>
</principal-list>
</results>

4. Then call:

http://example.com/api/xml?action=princ … rincipalId

Let me know if that helps.

Thanks,
Quinn

Offline

Board footer