Delete unused accounts

18 views
Skip to first unread message

Toby Archer

unread,
Jul 10, 2018, 9:52:35 AM7/10/18
to uPortal Community
Is there a way to delete old un-used accounts? I'm going through the steps of upgrading to uPortal 5 and I realized I exported ~138k user accounts from the current portal, of which only ~20k are actually active. So I'd like to delete all these extra accounts.

Drew Wills

unread,
Jul 10, 2018, 12:20:23 PM7/10/18
to uporta...@apereo.org

Toben,

Normally you can just ignore accounts of flesh-and-blood users -- not migrate them at all.

They'll be re-created when the users next log in.

(As long as you're not migrating layouts of flesh-and-blood users, this approach is normally a good one.)

drew


On 07/10/2018 06:52 AM, Toby Archer wrote:
Is there a way to delete old un-used accounts? I'm going through the steps of upgrading to uPortal 5 and I realized I exported ~138k user accounts from the current portal, of which only ~20k are actually active. So I'd like to delete all these extra accounts.
--
You received this message because you are subscribed to the Google Groups "uPortal Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uportal-user...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/uportal-user/.

Toby Archer

unread,
Jul 10, 2018, 12:30:09 PM7/10/18
to uPortal Community
But does that not still mean I'm migrating the layouts of those un-used users? Perhaps I'm just miss understanding what all is expected to all the data. But based off of what you have just said, I'm guessing the content i got from "ant data-export -Ddir=dexport -Dtype=user" is stuff that I should not be migrating?

Drew Wills

unread,
Jul 10, 2018, 12:37:58 PM7/10/18
to uporta...@apereo.org

Try editing this file...

  - https://github.com/Jasig/uPortal/blob/master/uPortal-webapp/src/main/resources/properties/export_included_users.properties

List only the fragment owners and users like 'admin', 'system', and so forth.  (Don't forget the "template users.")

When you next export, the process will (should) produce .user.xml files and .layout.xml files only for those users.

drew

Toby Archer

unread,
Jul 10, 2018, 3:18:14 PM7/10/18
to uPortal Community
I changed said file to:

#*
academics-lo
administration-lo
admin-lo
all-lo
authenticated.respondr-lo
authenticated-lo
campus-lo
developer
developer-lo
ent-lo
faculty
favorite-lo
financial-lo
guest.responder
guest-lo
home-lo
_news_favorite_collection-lo
news_favorite_collection-lo
news-lo
responder-lo
staff
staff-lo
student
technology-lo
tenant-admin-lo
welcome-lo

But it didn't seem to have any effect, all the users were exported again. But also, and this is were this gets sticky, i do want all the layouts of the users who are still using the portal (Or I will have some very angry people on campus). So I want to grab the layout of anyone who has logged in in the last year or two but not beyond that. Which is why i came to the idea of deleting users. If I got ride of the excess users then the export would be fine on simply the wild card.
Reply all
Reply to author
Forward
0 new messages