[midPoint] Midpoint Query API and Extension Attributes

Haywood, Jeremiah jhaywo1 at ilstu.edu
Tue Jul 13 15:57:15 CEST 2021


Has anyone worked with the Midpoint query api and returning extension
attribute values for users? It seems the default schema attributes can be
accessed by name fairly easily. Have been looking at the UserType
(https://download.evolveum.com/midpoint/4.2/midpoint-4.2-javadoc/com/evolveu
m/midpoint/xml/ns/_public/common/common_3/UserType.html) class but can't
seem to find a method to directly access the extension attributes. Was
hoping there wouldn't be a need for regex.

 

Example:

// query for user

thisUser = midpoint.searchObjects(UserType.class, userQuery, null)

 

// returns value for givenName

thisUser.givenName

 

//returns an arraylist, with additional unwanted info

thisUser.extension

 

e.g.

[PCV(null):[PP({http://customSchema.com/xml/ns/customSchema}preferredFirstNa
me):[PPV(String:Luke)]]

 

 

Thank you,

 

Jeremiah Haywood

Identity and Access Management Administrator 

Office of Technology Solutions | Illinois State University

Phone Number (309) 438-3829

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20210713/1210fdf9/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6756 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20210713/1210fdf9/attachment.bin>


More information about the midPoint mailing list