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.
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!
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!
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: