member of an organization for a limited time?

344
2
02-25-2019 05:12 AM
Nicole_Ueberschär
Esri Regular Contributor

We have a project where researchers would get access to certain data on request and for a limited time. Is there a way to limit the "lifespan" of a member? Let's say, I grant someone access today and want to remove him as a user again after 30 days. Is there a way to automatize this or would I need to put a reminder in my calendar?

0 Kudos
2 Replies
SethLewis1
Occasional Contributor III

Conceivably you could write a script using the Python API that would let you delete a user based on a time difference.

You'd have to query for the user & return the User object, get its create date timestamp, then compare that timestamp against the given day's timestamp to see if it meets your 30 day criteria before deleting the user. This assumes that the user doesn't own content.

Nicole_Ueberschär
Esri Regular Contributor

Yes, that was also the work around I thought of. 

0 Kudos