<div dir="ltr">Thanks Stian, Marek,<div><br></div><div>I will create the Jira ticket because it will be nice to have it, but I'm not blocked by that in any way actually.</div><div><br></div><div>Regards,</div><div>Fab</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 24 May 2016 at 20:17, Marek Posolda <span dir="ltr"><<a href="mailto:mposolda@redhat.com" target="_blank">mposolda@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>The only reason is, that singleFile
provided can have support just for some subset of
usersExportStrategy options (REALM_FILE and SKIP). The others
doesn't makes sense for singleFile provider as it always uses same
file.<br>
<br>
Originally the singleFile export/import provider was intended to
be used just for small environments with small number of users,
where you just quickly export everything into single file and you
are good. <br>
For environments with big number of users where more flexibility
is needed, you would use either dir provider or zip provider
(which was later removed because nobody was using it and it
required additional 3rd party dependency). So the support for
usersExportStrategy and also for "pagination" (limiting number of
users in each transaction) was added just to those providers. <br>
<br>
Feel free to create JIRA for support usersExportStrategy and
pagination for singleFile provider.<br>
<br>
Until we have it, you can use dir provider. Or is it something
which blocks you from using dir provider?<span class="HOEnZb"><font color="#888888"><br>
<br>
Marek</font></span><div><div class="h5"><br>
<br>
On 23/05/16 07:20, Stian Thorgersen wrote:<br>
</div></div></div><div><div class="h5">
<blockquote type="cite">
<div dir="ltr">The usersExportStrategy as stated in the docs is
only used by the dir provider, hence why it's hard-coded in the
single file export provider. I can't see why it couldn't be
supported though.
<div><br>
</div>
<div>Marek - is there any good reason why singlefileexport could
support skipping users?</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 23 May 2016 at 03:28, Fabricio
Milone <span dir="ltr"><<a href="mailto:fabricio.milone@shinetech.com" target="_blank">fabricio.milone@shinetech.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi devs,
<div><br>
</div>
<div>I've been working with some realm configurations and
today I wanted to export all my work to a file so I
tried to follow this:</div>
<div><br>
</div>
<div><a href="http://keycloak.github.io/docs/userguide/keycloak-server/html/export-import.html" target="_blank">http://keycloak.github.io/docs/userguide/keycloak-server/html/export-import.html</a></div>
<div><br>
</div>
<div>After some failed attempts due to my custom
federator, I've decided to SKIP users from the export
using the SKIP property as described in the
documentation but it didn't work at all, so I've checked
the code that is performing the export action and found
that the usersExportStrategy is not being taken from the
configuration but it is just set to TRUE instead.</div>
<div><br>
</div>
<div>Look at the lines 65 and 83 in this file:</div>
<div><br>
</div>
<div><a href="https://github.com/keycloak/keycloak/blob/master/services/src/main/java/org/keycloak/exportimport/singlefile/SingleFileExportProvider.java" target="_blank">https://github.com/keycloak/keycloak/blob/master/services/src/main/java/org/keycloak/exportimport/singlefile/SingleFileExportProvider.java</a><br clear="all">
<div><br>
</div>
<div>For now, I've just modified the code locally to get
the configuration correctly from the property I am
passing at startup (like
MultipleStepsExportProvider.java is doing), but I
would like to contribute with a PR if necessary.</div>
<div><br>
</div>
<div>Is there any reason to not do this?</div>
<div><br>
</div>
<div>Thanks in advance.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Fabricio</div>
<div><br>
</div>
-- <br>
<div>
<div dir="ltr">
<div><span style="font-size:12.8px;font-family:Verdana,Arial,Helvetica,sans-serif"><b><font color="#000000">Fabricio Milone</font></b></span></div>
<div><span style="font-size:12.8px;font-family:Verdana,Arial,Helvetica,sans-serif"><font color="#000000">Developer</font></span></div>
<span style="font-size:12.8px;font-family:Verdana,Arial,Helvetica,sans-serif"><b><font color="#009900">
<div><span style="font-size:12.8px;font-family:Verdana,Arial,Helvetica,sans-serif"><b><font color="#009900"><br>
</font></b></span></div>
Shine Consulting </font></b></span><span style="font-size:12.8px;font-family:Verdana,Arial,Helvetica,sans-serif">
<p style="font-size:13.3px;color:rgb(0,153,0);margin:0pt"><span style="color:rgb(0,0,0)">30/600 Bourke Street</span></p>
<p style="font-size:13.3px;color:rgb(0,153,0);margin:0pt"><span style="color:rgb(0,0,0)">Melbourne VIC 3000</span></p>
<p style="font-size:13.3px;color:rgb(0,153,0);margin:0pt"><span style="color:rgb(0,0,0)">T: 03 8488 9939</span></p>
<p style="font-size:13.3px;color:rgb(0,153,0);margin:0pt"><span style="color:rgb(0,0,0)">M: 04 3200 4006</span></p>
<p style="font-size:13.3px;color:rgb(0,153,0);margin:0pt"><span style="color:rgb(0,0,0)"><br>
</span></p>
</span><span style="font-size:13.3px;font-family:Verdana,Arial,Helvetica,sans-serif"><span style="font-size:13.3px">
<p style="margin:0pt"><a href="http://www.shinetech.com/" style="color:rgb(51,51,51)" target="_blank">www.shinetech.com</a><font color="#333333"> </font><i style="color:rgb(51,51,51)"><b>a</b></i><font color="#333333"> passion for excellence</font></p>
</span></span></div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
keycloak-dev mailing list<br>
<a href="mailto:keycloak-dev@lists.jboss.org" target="_blank">keycloak-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><span style="font-size:12.8px;font-family:Verdana,Arial,Helvetica,sans-serif"><b><font color="#000000">Fabricio Milone</font></b></span></div><div><span style="font-size:12.8px;font-family:Verdana,Arial,Helvetica,sans-serif"><font color="#000000">Developer</font></span></div><span style="font-size:12.8px;font-family:Verdana,Arial,Helvetica,sans-serif"><b><font color="#009900"><div><span style="font-size:12.8px;font-family:Verdana,Arial,Helvetica,sans-serif"><b><font color="#009900"><br></font></b></span></div>Shine Consulting </font></b></span><span style="font-size:12.8px;font-family:Verdana,Arial,Helvetica,sans-serif"><p style="font-size:13.3px;color:rgb(0,153,0);margin:0pt"><span style="color:rgb(0,0,0)">30/600 Bourke Street</span></p><p style="font-size:13.3px;color:rgb(0,153,0);margin:0pt"><span style="color:rgb(0,0,0)">Melbourne VIC 3000</span></p><p style="font-size:13.3px;color:rgb(0,153,0);margin:0pt"><span style="color:rgb(0,0,0)">T: 03 8488 9939</span></p><p style="font-size:13.3px;color:rgb(0,153,0);margin:0pt"><span style="color:rgb(0,0,0)">M: 04 3200 4006</span></p><p style="font-size:13.3px;color:rgb(0,153,0);margin:0pt"><span style="color:rgb(0,0,0)"><br></span></p></span><span style="font-size:13.3px;font-family:Verdana,Arial,Helvetica,sans-serif"><span style="font-size:13.3px"><p style="margin:0pt"><a href="http://www.shinetech.com/" style="color:rgb(51,51,51)" target="_blank">www.shinetech.com</a><font color="#333333"> </font><i style="color:rgb(51,51,51)"><b>a</b></i><font color="#333333"> passion for excellence</font></p></span></span></div></div>
</div>