[midPoint] Obtaining tasks using REST API

Doler, Alexander Earl (LATCO - Buenos Aires) adoler at deloitte.com
Wed Feb 7 15:44:01 CET 2018


Hi Alcides,

Thanks for your response and example code! I will look into implementing this myself.

I have another question that I wonder if anyone has experience with. I would like to force new users to change their password upon their first login to MidPoint. I noticed there is a user attribute “forceChange” that seems to exist for this purpose, but toggling this attribute has no effect on the user, and I have been unable to find anything in the documentation about how to implement this. Does anyone know if this feature exists and how to implement it?

Thanks,
Alex

From: midPoint [mailto:midpoint-bounces at lists.evolveum.com] On Behalf Of Alcides Carlos de Moraes Neto
Sent: martes, 6 de febrero de 2018 6:31 p. m.
To: midPoint General Discussion <midpoint at lists.evolveum.com>
Subject: Re: [midPoint] Obtaining tasks using REST API

Hi Alex,
As of Midpoint 3.6, there is no REST API for Task items (and I don't think 3.7 has it either).
However, you can use an overlay and implement it yourself. I've done it and it's not difficult.
I started from this example: https://github.com/Evolveum/midpoint-custom-service
Getting a user's work items:

ObjectQuery query = QueryBuilder.queryFor(WorkItemType.class,
                        prismContext)
                                                .item(WorkItemType.F_ASSIGNEE_REF)
                                                .ref(user.getOid())
                                                .build();
                SearchResultList<WorkItemType> workItems = modelService.searchContainers(
                        WorkItemType.class, query, null, task, result);
For completing a workitem,  use workflowService.completeWorkItem

2018-02-06 12:45 GMT-02:00 Doler, Alexander Earl (LATCO - Buenos Aires) <adoler at deloitte.com<mailto:adoler at deloitte.com>>:
Hello,

I am working with MidPoint’s REST API. I would like to know if anyone has experience with, or if there is a way to obtain all of the approval tasks that are pending for a user, and if so, if there is a way to approve these work items.

Thanks,
Alex



_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com<mailto:midPoint at lists.evolveum.com>
http://lists.evolveum.com/mailman/listinfo/midpoint

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20180207/f7118554/attachment.htm>


More information about the midPoint mailing list