Select to view content in your preferred language

adjust limit of group.remove_users()

54
0
Monday
Status: Open
Labels (1)
MarcelBeckmann
Frequent Contributor

If you provide the group.remove_users() Fuction a list with 25 or more users, the function will fail with the following Error Message:

Exceeded maximum number of users allowed per call.

This is because there is a limit of maximum 24 users that can be removed per call.

There is no word about it in the ESRI Python documentation: https://developers.arcgis.com/python/latest/api-reference/arcgis.gis.toc.html#arcgis.gis.Group.remov...

Why does ESRI implement these limits, does not say a word in the documentation and users have to find out the hard way when scripts fail to run. Not because there is a mistake, but because there is a not very well documented limit! So annoying!

But we are here to make the world a better place. And to improve the situation it would be great if:

1. This would be documented in the ESRI Python documentation. So users get a chance to know about this.

2. This would be an optional parameter. So if anybody is afraid to kick out all users of groups due to a mistake, the user is able to define a (security) limit by himself.

This would help so users dont need to chop up larger userlists into smaller pices und sent multiple calls instead of one call which does everything.
I guess it would also improve performance doing one call instead of many. But what do I know. I am just a user...