Assign Categories to Portal Group

342
1
Jump to solution
07-07-2019 10:19 PM
AnthonyRyanEQL
Occasional Contributor III

Hi there,

I having issues in assigning categories to portal groups using the Python API 1.6.2 and ArcGIS Enterprise 10.7.1. According to the API docs, the CategorySchemaManager helper class is created and called categories, is available as a property on gis.content or on gis.groups

My portal groups configuration (title, etc) is stored in a json file (see below for example)

and I'm reading & loading using the standard import json lib, etc.

The above code works very well in creating the group & setting the Delete Protection checkbox.

I added the following line of code and the script still runs with no errors, etc

group.categories.schema=group_config["categories"]

But the Category section for the Group is still blank as you can see because the 'Set up group categories' button is present

Do I have to assign the category a different way or is there an issue?

Thanks

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
AnthonyRyanEQL
Occasional Contributor III

Hi everybody,

I logged a support call and Esri Inc found this issue to be a bug (BUG-000124536)

View solution in original post

1 Reply
AnthonyRyanEQL
Occasional Contributor III

Hi everybody,

I logged a support call and Esri Inc found this issue to be a bug (BUG-000124536)

View solution in original post