it is not a problem of this great plugin but does someone know how can get this data. I do have the data explorer but I do not know the structure of all database tables and in which tables I would have to look for the data and which ones I would have to join in order to get this data.
See the earlier post, I think:
no these site settings were already enabled and that is the data I do already have.
But that does not include the administrative records , as Angus has written above:
And now I am looking how I could extract these administrative records.
Hmm, I thought that was the meaning of extended - itâs everything practically exportable.
Yes, thatâs right. Unfortunately, thereâs not a straightforward answer to this question. This is why those records are not included, as explained above. Note, in particular
That said, to gather additional records containing ther userâs user id, you can use this approach.
-
Install the data explorer plugin
-
Create a new query (perhaps call it âAdditional User Records (GDPR)â)
-
Do a search for âuser_idâ in the schema explorer on the right to see which database tables include a user_id in them. Youâll see that a number of them are already included (see list in OP + âuser activityâ as mentioned in my second post).
-
Determine the
user_idof the user in question (you can find it at/u/username.json) -
For each additional table you want to include, construct a query that extracts the rows where the
user_idmatches the relevant id. e.g.select * from [table_name] where user_id = [user_id]
I suggest you review each of these âadditionalâ tables on their own merits, rather than just attempting to download every single record that contains the userâs id.
The records may contain other information, relevant to other users with counterveiling interests, or may be senstive in some other way. Unfortunately thereâs no single answer to the question of âscopeâ here. Youâll need to make that call based on how you read your specific mixture of responsibiities. The GDPR is not the only relevant responsibility here. You shouldnât just hand over every single record that contains a userâs id.
Iâm actually a little unclear whatâs driving the interest in these additional records? Is this something the user has asked for, i.e. beyond whatâs already included? If they havenât whatâs motivating this? A different interpretation of your responsibilities under the GDPR than what Iâve laid out above? If so Iâd be curious to learn more and the legal reasoning behind it (I may want to consider assimilating the reasoning into this plugin).
yes but of course we are not williing to give him all these information. Especially if the records do have also data from other users. We just want to be prepared to have these additional information if really needed. We will most probably not provide these information to this user but we might have to give information to the authorities because we expect that the user will address it to the authorities.
Our new data protection officer also told us that we should at least not yet provide the administrative records.
I see.
If your data protection officer decides that additional records are needed, and has some tables in mind, I would be happy to provide a more specific sql query to help you out. For the reasons I mentioned, I donât want to nominate specific additional tables to be provided as a general piece of advice outside of the context of a case.
But if you need something specific as this case progresses, Iâd be happy to help you out pro bono, as that is in the spirit of this plugin, i.e. to make it easier for Discourse communities to navigate the GDPR. If that happens, and you have specific tables in mind, and youâre in need of assistance with the SQL query, PM me here on meta.
In short, Iâm happy to provide some ad-hoc technical (non-legal) assistance to Discourse communities in response to specific cases under the GDPR, but Iâm conscious of not setting general standards beyond the scope of what is reasonable for the majority of cases. If there is a legal argument of that sort that the scope of the plugin should be expanded, Iâm open to it.
well our data protection officer told me that there is at least currently no need to extract additional administrative data. Thanks a lot for your help and if needed I would get back to you.
This plugin is great!
Handling GDPR subject access requests is a pain, a total time drain, and this helps cover all of that with much more confidence. Thank you.
Are there any plans to add more features? Particularly Iâm struggling with data retention and minimisation principals. Specifically Iâm interested in minimising âadministrative recordsâ - whispers and posts in team areas which could contain notes on IP addresses and other personally identifying data that needs sifting and searching by hand. Five years on thereâs too much to audit, and little value in the old messages so I want / need to permanently delete them. Iâd actually like to have just a 6 month retention policy on such messages and whispers.
So I can select and delete stuff using rake, but itâs just marked deleted and still all there in the database 
Iâve therefore been thinking about an âobliteratorâ plug-in that would either change the raw and cooked text of deleted posts to something like âthis message has been obliteratedâ, or (preferably) unpick and remove the posts entirely. Having never written ruby or a plug-in, Iâm not at an ideal starting position, though could potentially just write some SQL to run against the db directly, then use rake to rebuild the search indexes afterwards.
@angus - I did wonder if in your legal considerations you had any thoughts on the data retention aspects of GDPR, and how you handle it?
Interesting!
Yes, Iâm open to adding a feature for that. Iâll have to consider it in some more depth after doing a bit more research.
Could you please a detailed feature request (select âLegal Toolsâ at the plugin step) laying out all the relevant details of your use case and any other research youâve collected, Iâll then follow up and engage after doing a bit of background.
questo plugin è ancora mantenuto?
Non riesco a cambiare lâimpostazione per abilitare il plugin ![]()
Ciao Nick, ci proverò la settimana prossima.
Lo apprezzo molto! ![]()
Ciao, mi sono imbattuto in questo e mi chiedo quanto di questo sia giĂ incluso o pianificato di essere incluso nel core.
Sembra che qualcosa si sia rotto prima di ieri
Non riesco ad approvare gli utenti e non riesco a caricare pagine come /admin/users/5996.json
plugins/discourse-legal-tools/lib/export_csv_file_extension.rb:41:in `can_export_entity?'
app/serializers/admin_detailed_user_serializer.rb:189:in `include_latest_export?'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:375:in `include?'
(eval at /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/active_model_serializers-0.8.4/lib/active_model/serializer.rb:467):74:in `_fast_attributes'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:456:in `attributes'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:480:in `_serializable_hash'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:359:in `serializable_hash'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:347:in `as_json'
app/controllers/application_controller.rb:499:in `serialize_data'
app/controllers/application_controller.rb:508:in `render_serialized'
app/controllers/admin/users_controller.rb:48:in `show'
actionpack (8.0.4) lib/action_controller/metal/basic_implicit_render.rb:8:in `send_action'
SÏ, questo è rotto da parecchio tempo. La maggior parte delle funzionalità è ormai nel core.
Aggiungerò il tag broken.