Re: How to get a new UAA guid by REST


Juan Antonio BreƱa Moral <bren at juanantonio.info...>
 

Hi I could retrieve the uses but using your clue, I receive the following error:

Error: the string "{\"message\":\"Content type 'application/octet-stream' n
ot supported\",\"error\":\"scim\"}" was thrown, throw an Error :)

I think that my code is OK using the info from Github, but I suppose that I need some additional stuff:

https://github.com/cloudfoundry/uaa/blob/master/docs/UAA-APIs.rst#create-a-user-post-users

Users.prototype.add = function (token_type, access_token) {
"use strict";

var url = this.UAA_API_URL + "/Users";

console.log(url);
var options = {
method: 'POST',
url: url,
headers: {
Accept: 'application/json',
Authorization: token_type + ' ' + access_token
}
};

return this.REST.request(options, "200", false);
};

Do you have if I need some additional parameter?

I add the user in UAA to retrieve the guid-uaa and after use this call:
http://apidocs.cloudfoundry.org/222/users/creating_a_user.html

Juan Antonio

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.