You cannot add extended properties as part of the create/update person request. It is a separate operation that is done after the person is there.
See "Create Ext Props" in the person service documentation at https://developers.jivesoftware.com/api/v3/cloud/rest/PersonService.html for the details of the call you will make for this.
Thank you for your reply.
FYI - I've already created the "University" field in the Admin Console under People -> Profile Settings.
So it's an expected field now when I'm creating new users.
Do I still have to make two seperate calls?
The first to create the user and the second to add the "University" data?
Thanks again Craig.
As per the above api call, it suggest the person ID must exist to access/create extended data.
I've also tried that.
I create the user first.
Then I call
With this string...
But Jive gives me an "Unauthorized" error.
FYI - I'm an admin on the instance.
What should I do?
It depends how your are trying to run your code. If you are running from inside Jive, I see no reason for this unauthorized if you are admin. If you are running outside jive, than you need to be authenticated first. How are testing it?
I’ve added an extended property to my people object called “University”.
If you created a new custom profile field in the admin console, that is not actually an "extended property" -- it's a profile field. .
This will show up in the jive.profile array, with a "jive_label" value that matches the name you gave the profile field ("University") in this case.
Easiest way to see how it works would be to manually edit a user profile to have a value for this field, then do a GET through the API too see how it comes out.
I'm trying your suggestion but it's making me run into another issue...
and using an Admin UID & PWD
This is the reponse I'm getting
throw 'allowIllegalResourceCall is false.';
"itemsPerPage" : 25,
"list" : [ ],
"startIndex" : 0
I've done this call with...
2) Chrome's Advanced REST client
Both tools are giving me the same response.
I would try one of the 2 urls
Depending on 2037 id (is it a personID or a memberID) I would try the following