<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear Deb,<div class=""><br class=""></div><div class="">I´m very happy to hear it´s working! </div><div class=""><br class=""></div><div class="">In case somebody else is having problems that anonymous users cannot see layers this</div><div class="">is how it worked in the end:</div><div class="">_</div><div class="">Setup oauth correctly</div><div class="">_</div><div class="">double check rest role service (test with curl)</div><div class="">_</div><div class="">created expected admin users in geonode</div><div class="">_</div><div class="">removed a hugh amount of not active users (those might slow down the auth check!?)</div><div class="">_</div><div class="">double checked geofence rules</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class="">Toni</div><div class=""><br class=""></div><div class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">-----------------------------------------------</div><div class="">CSGIS</div><div class=""><br class=""></div><div class="">-----------------------------------------------</div><div class=""><div class="" style="orphans: 2; widows: 2;">Kolonnadenstraße 1</div><div class="" style="orphans: 2; widows: 2;">04109 Leipzig</div></div><div class="">-----------------------------------------------</div><div class="">Tel <span class="Apple-tab-span" style="white-space: pre;">               </span>+49/ (0) 341 24 04 738</div><div class="">Fax <span class="Apple-tab-span" style="white-space: pre;">         </span>+49/ (0) 341 24 04 739</div><div class="">Web<span class="Apple-tab-span" style="white-space: pre;">               </span><a href="http://csgis.de" class="">http://csgis.de</a></div><div class="">-----------------------------------------------</div><div class=""><br class=""></div><div class="">Hinweis gemäß § 33 BDSG</div><div class="">Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den </div><div class="">Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich </div><div class="">erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht </div><div class="">von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung, </div><div class="">Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.</div></div></div></div></div></div></div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">Am 24.04.2019 um 11:16 schrieb Dev Gis <<a href="mailto:deviirmr@gmail.com" class="">deviirmr@gmail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Toni,<div class="">Thank you for sharing the script.<br class=""><div class="">Yes, I have some experience in Django development but not much aware of GeoNode classes.</div><div class="">But finally, I have managed to delete all spam user :).</div><div class=""><br class=""></div><div class="">Now the application is faster and better as you suggested to me in the last email. :)</div></div><div class="">Thank you so much for your effort and time.</div><div class="">Regards</div><div class="">Deb</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 24, 2019 at 11:07 AM Toni Schönbuchner <<a href="mailto:toni.schoenbuchner@csgis.de" class="">toni.schoenbuchner@csgis.de</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" class="">Hi deb,<div class=""><br class=""></div><div class="">As far as I know you cannot in django admin gui.</div><div class="">but you could list layers depening on your needs using the django shell</div><div class="">with something like:</div><div class=""><br class=""></div><div class=""><div class="">$ Django-admin shell</div><div class=""><br class=""></div><div class="">from django.contrib.auth import get_user_model</div><div class="">User = get_user_model() </div><div class="">import datetime</div><div class=""><br class=""></div><div class=""><b class=""># show users which joined the last x days (120 in this example)</b></div><div class=""><b class=""># you could also switch this to show only users older than ...</b></div><div class="">active_staff_last_login = User.objects.filter(date_joined__lte=datetime.datetime.today(), date_joined__gt=datetime.datetime.today()-datetime.timedelta(days=120))</div><div class=""><br class=""></div><div class="">for username in active_staff_last_login:</div><div class="">    print str(username)+' joined: '+str(username.date_joined)</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">cheers,</div><div class=""><br class=""></div><div class="">Toni</div><div class=""><br class=""><div class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><div style="overflow-wrap: break-word;" class=""><div class="">-----------------------------------------------</div><div class="">CSGIS</div><div class=""><br class=""></div><div class="">-----------------------------------------------</div><div class=""><div class="">Kolonnadenstraße 1</div><div class="">04109 Leipzig</div></div><div class="">-----------------------------------------------</div><div class="">Tel <span class="gmail-m_-3023587919022960547Apple-tab-span" style="white-space:pre-wrap">                </span>+49/ (0) 341 24 04 738</div><div class="">Fax <span class="gmail-m_-3023587919022960547Apple-tab-span" style="white-space:pre-wrap">          </span>+49/ (0) 341 24 04 739</div><div class="">Web<span class="gmail-m_-3023587919022960547Apple-tab-span" style="white-space:pre-wrap">                </span><a href="http://csgis.de/" target="_blank" class="">http://csgis.de</a></div><div class="">-----------------------------------------------</div><div class=""><br class=""></div><div class="">Hinweis gemäß § 33 BDSG</div><div class="">Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den </div><div class="">Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich </div><div class="">erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht </div><div class="">von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung, </div><div class="">Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.</div></div></div></div></div></div></div>
</div>
<div class=""><br class=""><blockquote type="cite" class=""><div class="">Am 24.04.2019 um 10:31 schrieb Dev Gis <<a href="mailto:deviirmr@gmail.com" target="_blank" class="">deviirmr@gmail.com</a>>:</div><br class="gmail-m_-3023587919022960547Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Toni,<div class="">You are right, after removing 50% spam user the performance is a bit improved.</div><div class="">I manage to delete 5000+ user based on the filter by keywords but rest 3000+ I am bit afraid to delete.</div><div class="">Could you suggest some mechanism so that I can filter based on the date before deleting those spam users?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><span id="gmail-m_-3023587919022960547cid:ii_juuyfy1c0" class=""><image.png></span><br class=""></div><div class="">  </div><div class="">Regards</div><div class="">Deb</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 23, 2019 at 10:21 PM Dev Gis <<a href="mailto:deviirmr@gmail.com" target="_blank" class="">deviirmr@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div dir="auto" class="">Thank you for the reply.</div><div dir="auto" class="">I saw that suspicious users yesterday its almost 9000+ </div><div dir="auto" class="">Yes tomorrow morning I will do the cleaning and get back to you.</div><div dir="auto" class="">Regards </div><div dir="auto" class="">Deb</div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 23 Apr 2019 at 9:49 PM, Toni Schönbuchner <<a href="mailto:toni.schoenbuchner@csgis.de" target="_blank" class="">toni.schoenbuchner@csgis.de</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="">Dear Deb,<div class=""><br class=""></div><div class="">would it be possible for you to got through the list of Users and delete all not needed:</div><div class=""><a href="http://geonode.iwlearn.org/admin/people/profile/" target="_blank" class="">http://geonode.iwlearn.org/admin/people/profile/</a></div><div class="">Might be a lot created by spamers.</div><div class=""><br class=""></div><div class="">(I´ve recognized the user endpoint takes a bit long to resolve and like to see if things get</div><div class="">better after housecleaning)</div><div class=""><br class=""></div><div class="">Best regards,</div><div class=""><br class=""></div><div class="">Toni</div></div><div class=""><div class=""><br class=""></div></div></blockquote></div></div></blockquote></div></div></blockquote></div></div></div></blockquote></div></div></blockquote></div><br class=""></div></body></html>