[midPoint] Assign resource through REST API using JSON body?

Robin Gorris Robin.Gorris at cronos.be
Fri Jan 9 10:18:43 CET 2026


Hi,

I can get this XML body sample to work:  https://github.com/Evolveum/midpoint-samples/blob/master/samples/rest/modification-assign-account.xml using a POST request on /midpoint/ws/rest/users/{oid-of-the-user}

Anyone has a working version of this using JSON in the body of the request instead of XML?

Many thanks in advance!

Met vriendelijke groet,
Kind regards,
[image]<https://www.is4u.be/>
Robin Gorris
Founder - IAM Architect

[mobile]
+32 474 40 99 91 <tel:+32%20474%2040%2099%2091>

[email]
robin.gorris at is4u.be <mailto:robin.gorris at is4u.be >

[website]
www.is4u.be <https://www.is4u.be/>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20260109/86d4ce8f/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 15451 bytes
Desc: image001.png
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20260109/86d4ce8f/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 2534 bytes
Desc: image002.png
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20260109/86d4ce8f/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 3180 bytes
Desc: image003.png
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20260109/86d4ce8f/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 4148 bytes
Desc: image004.png
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20260109/86d4ce8f/attachment-0007.png>


More information about the midPoint mailing list