
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2021 02:47 AM
Hi everyone ,
I am creating internal user groups through python script to ISE . I am getting this error while running the script
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2021 04:50 AM
"title": "Resource Initialization Failed: Invalid JSON: Unrecognized field \"User Groups\" (Class identity.InternalUser), not marked as ignorable\n "
-Your snippet shows that you are attempting to create (identified via POST) an internal user (identified via url). You are getting that error because the following is not valid syntax when attempting to consume the internal user API: "User Groups": "Employee"
This JSON request content example was extracted from the ERS Online SDK in regard to the internal user API:
JSON { "InternalUser": { "name": "name", "description": "description", "enabled": true, "email": "email@domain.com", "password": "password", "firstName": "firstName", "lastName": "lastName", "changePassword": true, "identityGroups": "identityGroups", "expiryDateEnabled": false, "expiryDate": "2016-12-11", "enablePassword": "enablePassword", "customAttributes": { "key1": "value1", "key2": "value3" }, "passwordIDStore": "Internal Users" } }
If your end goal is to an Identity Group then the URL for consumption would look like this: https://x.x.x.x:9060/ers/config/identitygroup
JSON context example from SDK:
JSON { "IdentityGroup": { "name": "name", "description": "description", "parent": "parent" } }
I strongly suggest taking a look at the following resources:
ERS SDK: https://<ise_pan_ip>:9060/ers/sdk#
ISE ERS API Examples - Cisco Community
HTH!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2021 04:50 AM
"title": "Resource Initialization Failed: Invalid JSON: Unrecognized field \"User Groups\" (Class identity.InternalUser), not marked as ignorable\n "
-Your snippet shows that you are attempting to create (identified via POST) an internal user (identified via url). You are getting that error because the following is not valid syntax when attempting to consume the internal user API: "User Groups": "Employee"
This JSON request content example was extracted from the ERS Online SDK in regard to the internal user API:
JSON { "InternalUser": { "name": "name", "description": "description", "enabled": true, "email": "email@domain.com", "password": "password", "firstName": "firstName", "lastName": "lastName", "changePassword": true, "identityGroups": "identityGroups", "expiryDateEnabled": false, "expiryDate": "2016-12-11", "enablePassword": "enablePassword", "customAttributes": { "key1": "value1", "key2": "value3" }, "passwordIDStore": "Internal Users" } }
If your end goal is to an Identity Group then the URL for consumption would look like this: https://x.x.x.x:9060/ers/config/identitygroup
JSON context example from SDK:
JSON { "IdentityGroup": { "name": "name", "description": "description", "parent": "parent" } }
I strongly suggest taking a look at the following resources:
ERS SDK: https://<ise_pan_ip>:9060/ers/sdk#
ISE ERS API Examples - Cisco Community
HTH!
