Using the python SDK to manage a user group, is th...
# gooddata-cn
p
Using the python SDK to manage a user group, is there a way to specify the
attributes
? It's easy to do via the REST API, but it is unclear on how to do that with the python SDK. What we need to do is set the User Group name, which is done in the attributes for the REST API.
Copy code
"data": {
        "id": "id-of-group",
        "type": "userGroup",
        "attributes": {
            "name": "Name That Shows up In UI"
        }
    },
Thread in Slack Conversation
b
Hi Patrick, the gooddata python SDK currently doesn't support name attribute of the user groups, I will create a request for it to be added.
p
Thank you for confirming that!
c
+1 on this, I'm hitting the same issue managing configuration as code via the Python SDK and we can't name our user groups something human readable for use in the UI. The code does seem to be in the SDK codebase or at least a reference on
master
so assume this is coming? https://github.com/gooddata/gooddata-python-sdk/blob/master/gooddata-sdk/gooddata_sdk/catalog/user/declarative_model/user_group.py#L49C7-L49C7
m
Hi Cam, name attribute for user groups is not supported in Python SDK yet, but it will be added in the upcoming release. We will let you know in case anything changes with the planned fix, you can also stay tuned to it via this page: https://github.com/gooddata/gooddata-python-sdk/releases
j
p
Thank you!