[midPoint] BULK: assign a role based on OrgUnit AND name

Marco Benucci m.benucci at nsr.it
Mon Feb 27 17:55:59 CET 2017


Hi,

actually I made it using this bulk action:

http://pastebin.com/9DPKmTw8

it was really simple with the midpoint query language and the anchorEnds 
filter.
I leave it here if someone needs this.

Thank you all,
Marco


On 02/27/2017 05:31 PM, Marco Benucci wrote:
>
> Hi, it's me again.
> We are running midpoint 3.4.1 and I'd like to assign a given role to 
> all users in a specified ou that have a particular username (ends with 
> ".e", ".ex" or ".ext").
>
> I think it should be possible by using bulks, maybe a mashup of:
>
> https://github.com/Evolveum/midpoint/blob/master/samples/tasks/bulk-actions/recompute-users-with-a-role.xml 
> (for getting users in a given OU)
>
> and
>
> https://github.com/Evolveum/midpoint/blob/master/samples/tasks/bulk-actions/assign-enduser-role-to-selected-users.xml 
> (assign a given role)
>
> It looks fine, but my problem is...
> Is there a way to filter also by a endsWith filter in the searchFilter 
> or in the action tags?
>
>
> Thank you all,
> Marco
>
>
>
>
>
> _______________________________________________
> midPoint mailing list
> 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/20170227/81140283/attachment.htm>


More information about the midPoint mailing list