on 03-03-2018 3:17 PM
I am trying to create a User by an ajax call for the SAP IdM.
This following is my coding to create a user:
var myData = {
"SV_MX_SALUTATION": "Mr",
"SV_MX_FIRSTNAME": "Myfirstname",
"SV_MX_LASTNAME": "Mylastname",
"SV_MX_MAIL_PRIMARY": "email@example.com"
};
$.ajax({
type: "POST",
url: "http://host:port/idmrest/v72alpha/entries/",
username: "user",
password: "password",
beforeSend: function(req) {
req.setRequestHeader('Authorization', 'Basic ' + btoa('user:password')); },
dataType: "json",
headers: {
"X-CSRF-Token": "xsrfTokenValue",
"X-Requested-With": "JSONHttpRequest",
"Accept": "application/json",
"Content-type": "application/x-www-form-urlencoded"
},
data: myData,
async: false,
contentType: 'application / json',
success: function(data) {
console.log("success");
}
});
The response that I get ist the following:
Can anyone help me to solve this problem ?
best regards
Receb Yildiz
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.