Restrict moderator access to only the stats panel on the admin dashboard?

I would like to know if it would be possible to make moderators have access to stats only when they access the admin dashboard.

I don’t want some moderators to have access to the “users”, “logs” and “plugins” tab.

إعجابَين (2)

No, not possible. And I don’t understand why you want that. I know it is April 1st but… Surely you trust your own moderators to view logs and the actual user list they are meant to be moderating.

إعجابَين (2)

lol. has nothing to do with April 1 though. Just asking to see if one can edit capabilities just as we do on WordPress.

Just thinking of having staff that can be posting and track pageviews to see how the site is performing. Nothing else.

Have them visit the /about page if they need basic stats.

4 إعجابات

No pageviews stats displayed at : About - NetDivo Forum

It seems that you have edited manually the content in the About page. You might have deleted the generated stats. Not 100% sure though, as I don’t remember exactly if you have the ability to delete them. @ondrejj can you confirm?

إعجاب واحد (1)

I found an use case that might be interesting for this, maybe not a moderator but an user with access to the great analytics that Discourse already generates.

Imagine a forum that uses some kind of marketing campaigns, yes Analytics is good, maybe Matomo or any other, but having the analytics built in give a more precise metric and there’s no need to run another tool for the same result.

So, having some kind of role that is able to access the admin dashboard and the metrics would be great to communities that use marketing or run campaigns to promote theirself.

إعجابَين (2)

For what it’s worth, we’d also greatly appreciate this capability. We’ve wanted to give direct access to admin reports to non-moderators for grant-writing and/or marketing purposes. By and large, they just want stats like signups, posts, likes, page_view_total_reqs and topics from /admin/reports/X.

The ability to hand off an API key with just this report access (and no other admin capabilities) would be awesome. We’d probably want the handful of reports that expose private info turned off (like user_notes, user_flagging_ratio, and staff_logins), but all other admin reports are entirely summary stats and don’t require admin-level (or even moderator-level) trust to view IMO.

إعجابَين (2)

You can add data explorer query rights to arbitrary groups, which can cover any reporting needs.

3 إعجابات

The data explorer requires a significantly higher threshold of trust as you can use it to see all private user data the system contains, including emails, private messages, mod actions, and more.

Edit: oh, I see, you can just whitelist individual queries, not rights to the entire UI.

إعجاب واحد (1)

No it doesn’t.

Group permission allows the specified group to only “execute” previously created queries.

إعجاب واحد (1)

Ah, cool! Is there a playground where our users can play around and build queries? The Data Explorer UI is really helpful in navigating the table structure.

Is it possible to get a shared Data Explorer query export programmatically? Doing the naive thing — accessing https://discourse.example.com/g/group/reports/123.json — doesn’t work like it does for the official reports page. Instead of actually doing the query it just returns the raw SQL itself.

Edit: ah, it’s How to run Data Explorer queries with the Discourse API

I am still so much interested in this feature. A staff/author that can just post to the forum but also have access to STATS only.

We hire writers but still want them to see STATS only so they can see if their contribution is helping the forum grow or not.

JetPack makes this easy for WordPress users and I believe it’s doable here too.

إعجاب واحد (1)

I do think the Data Explorer plugin can do exactly what you want here, but it unfortunately requires some SQL know-how to set up the queries. Once you have the queries you want you can make them available to any group of users as you prefer.

https://meta.discourse.org/t/what-cool-data-explorer-queries-have-you-come-up-with/43516/279

إعجابَين (2)

Thanks. If it can, then I think it will be easier for discourse to implement the feature for those of us that can’t really make use of the data explorer option. Just my two cents…

I’m surprised that there hasn’t been more interest in this. I understand many being guarded on stats, but I’d love to grant our moderators access to the stats page.

3 إعجابات

أتساءل عما إذا كان أي شخص قد وجد حلاً بديلاً هنا… ما زلت أبحث عن الطريقة الأكثر ملاءمة لمنح المشرفين إمكانية الوصول إلى التقارير.

باستخدام data-explorer يمكنك إنشاء استعلام يجعل أي بيانات ترغب بها متاحة للمشرفين أو لمجموعة مخصصة.

إعجابَين (2)

لدينا الآن أيضًا SQL للعديد من تقارير لوحة المعلومات هنا على meta (dashboard-sql) حتى تتمكن من تكرارها بسهولة في مستكشف البيانات والسماح بالوصول إلى مجموعة معينة دون الحاجة إلى منح حالة مشرف كاملة. :+1:

يسمح لك استخدام هذا بالاشتراك مع ميزة مشرف الفئة بمنح مستخدمين معينين بعض قدرات المشرف وال الوصول إلى الإحصائيات دون منحهم الوصول إلى مناطق المشرف الأخرى.

4 إعجابات