cancel
Showing results for 
Search instead for 
Did you mean: 

IDM Rest API V2: Get outdated role assignments

rolf_gadorosi
Explorer
0 Kudos

Hi,

in the help for the Rest api you can find under "Search Entry References" the Status Search for "HISTORY". But obviously this key word is not supported.

idmrestapi/v2/service/ET_MX_PERSON(ID=185491,TASK_GUID=guid'...')/ER_MXREF_MX_ROLE?status=FUTURE works fine, but

idmrestapi/v2/service/ET_MX_PERSON(ID=185491,TASK_GUID=guid'...')/ER_MXREF_MX_ROLE?status=HISTORY does not.

IIs there another way to get outdated role assignments for a given user with the Rest API?

Best Regards

Rolf

Accepted Solutions (0)

Answers (1)

Answers (1)

lambert-giese
Active Participant

Getting historical assignments is only supported starting from SAP IDM 8.0 SP6, as far as I know. Check whether you already have that version. The documentation for this feature is available here:

https://help.sap.com/viewer/4773a9ae1296411a9d5c24873a8d418c/8.0/en-US/4c5be92b488d4868a5802e6a3bf70...

The documentation gives the following example:

/idmrestapi/v2/service/ER_MXREF_MX_ROLE(LINK_ID=62,TASK_GUID=guid'102E1D96-1813-4A58-9880-9572056F0FD1')/ASSIGNMENT_HISTORY
former_member187331
Participant

Hello Lambert,

I think you got something wrong. What Rolf wants to accomplish, is to a list of all assigments in the past ("history" tab in WebDynPro)

What your mentioned API does, is to show the history of a specific assigment (equivalent to the "status"-popup in WebDynPro).

rolf.gadorosi Its currently not possible with the current RESTAPI 😉

Regards,
Aydin

lambert-giese
Active Participant
0 Kudos

OK, thanks for clarifying

rolf_gadorosi
Explorer
0 Kudos

Hello Aydin,

you took my question right, thanks for clarifying.

Do you know if there is a way to read ALL role assignments for a given user with the REST API?

Help says: "If no status filter and basic filter is specified, all assignments are returned". But this results in the currently assigned role assignments - and not those of the past.

Regards

Rolf