- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2024 07:23 AM - edited 03-15-2024 07:25 AM
I have another strange issue with the CER config API in V14. I am able to add and delete users, but I can't add users to a group. This request looks properly formatted to me, and the API returns a 200. It doesn't actually add the user to the group though.
<updateUserGroupRequest><userGroupName>CER Admin Utility</userGroupName><addUsersToGroup><user>a1-e331759d</user></addUsersToGroup></updateUserGroupRequest>
I am using requests.put to do the update.
Solved! Go to Solution.
- Labels:
-
Emergency Responder
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2024 07:31 AM - edited 03-15-2024 07:31 AM
Doh, stupid content messages! I don't understand why it returned a 200 when it failed, but examining the content provided the answer.
assignRolesToGroup field is absent. You must include that tag even if you aren't changing anything.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2024 07:31 AM - edited 03-15-2024 07:31 AM
Doh, stupid content messages! I don't understand why it returned a 200 when it failed, but examining the content provided the answer.
assignRolesToGroup field is absent. You must include that tag even if you aren't changing anything.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2024 07:47 AM
This gets stranger and stranger. I didn't blow up the role assignments because you can't change default groups. I did wipe out the description by not including it in the update request. Apparently, you MUST include all the fields in the update request even if you aren't changing their value. That doesn't make sense to me, but whatever.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2024 08:12 AM
Here is another oddity. Group descriptions can clearly have more than 20 characters based on the default groups, but the API doesn't think so.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><updateUserGroupResponse><status>Failure</status><message>Description cannot have more than 20 chars</message></updateUserGroupResponse>
