Select to view content in your preferred language

Error creating groups (You do not have permissions...)

1523
3
05-19-2021 04:23 PM
julian_svcs
Frequent Contributor

I am trying to create a number of groups. I have used .groups.create from a dictionary and also .groups.create_from_dict and I get an error (

Exception: You do not have permissions to access this resource or perform this operation.
(Error Code: 403)

 I am an Administrator in the Enterprise (10.8.1). I am able to create a group manually in Portal, but when I try do it via the ArcGIS API for Python I get the error mentioned above.

I have tested the script in another environment (also an Admin and 10.8.1) and it works successfully.

Could this be some sort of other underlying directory permissions or something?

Thanks.

Julian.

0 Kudos
3 Replies
DavinWalker2
Esri Contributor

Hi Julian,

Are you able to navigate to https://machine.domain.com/webadaptor/community/createGroup from the machine you are running the script from?

0 Kudos
julian_svcs
Frequent Contributor

Hi David, thanks for the reply.

If you are refering to https://machine.domain.com/webadaptor/sharing/rest/community/createGroup then yes, I can access that and create a group from this URL.

0 Kudos
julian_svcs
Frequent Contributor

It appears that I cannot do much in this new environment (might be permissions somewhere). I also get a permissions error when using:

all_users = gis.users.search(max_users=3000)

 

0 Kudos