on 11-16-2016 11:18 AM
Dear community,
we are currently implementing a custom UI for the Identity Management based on the RestAPI v72alpha and are stuck with assigning roles (MX_ROLE) to an identity. While we are able to assign roles with a validity and reason, the API fails to assign the roles with a context.
The current code looks like this:
$.ajax({
type: "POST",
url: "/idmrest/v72alpha/entries/9351/tasks/1323,
data: { "MXREF_MX_ROLE": "[{'REASON' : 'test reason', VALIDFROM : '2016-07-11', VALIDTO: '2016-12-28', 'VALUE':'44', CONTEXTID : '223'}] "},
contentType: "application/x-www-form-urlencoded",
dataType: "json",
success: function(oResponse) { fnResolve(); },
error: fnReject
});
Inputs:
Does anyone have a suggestion/idea/example of this working? Maybe use a different task, as this task does not allow context based assignment within the standard UI. For this we use a guided task, which I'm not sure on how to address it with the Rest API.
Thanks for any help in advance,
Hendrik
Hey Kautilya,
the context-based assignments are working and configured in a correct way.
As it turned out, the SAP documentation has a syntax error. With some extensive trial and error, we found this to be a working solution:
{
“REFERENCED_ID”:54321,
“CONTEXT”:{
“CONTEXT_ID”:12345
},
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.