How to get a report of groups with no users at all?

Robert Campbell
Tera Guru

I am able to get a able to create a report that shows groups that have no users listed in them with:

 

RobertCampbell_0-1683066009842.png

 

However, this only identifies the groups that don't have members listed in the group. I want to get a list of groups that have no members listed and no groups listed.  I tried this with a db view but if you've been following me, you should know that db views and I aren't friends at all.

 

In my mind, this should work:

RobertCampbell_1-1683066115972.png

 

But it does not.

5 REPLIES 5

bammar
Kilo Sage
Kilo Sage

its kind of against intuition but you need to sort of flip the tables- make a report on the group table and then on the related list conditions then look the info up on the user table...

AndersBGS
Tera Patron
Tera Patron

Hi @Robert Campbell ,

 

Have you remembered the left join on the sys_user_group. 

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

A left join on the sys_user_group will display all the records of the table before it, correct?

a left join on the sys_user_group will display all groups no matter if there is people assigned to that group or not. But maybe I misunderstood your question?

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/