We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to exclude the AD groups/any from the teams view workspace list

suuriyas
Tera Contributor

HI Community,

 

Currently teams view in workspace shows all the groups the user is a member of. AD groups should be excluded from the list 

How can we achieve this is that we can add filter like that?

I only want actually groups to be displayed the users are part of

suuriyas_0-1769152237144.png

 

 

Thanks in advance

18 REPLIES 18

HI @IgorLima @Itallo Brandão 

Thanks for the help

 

If  im not wrong this is the one your talking about right.

I cloned the Teams page and in the cloned page left side i see data resource under that i opened sow team management where i see the filter condition click on the database symbol (bind data) this page opens up there i see Data resource (if i'm not wrong this is the one your referring right).

This is empty.

screenshot 1;

suuriyas_0-1769754551056.png

screenshot 2:

suuriyas_1-1769754591991.png

 

 

 

Sorry for the multiple messages earlier some of my replies were not appearing on my side, so I ended up posting several times.

After reviewing the SOW Teams view, it’s not possible to modify the underlying query to exclude Active Directory groups.

The SOW Team management component uses an encapsulated OOTB data source, and even after cloning the page, the query is not exposed for customization.

To apply this type of filter, the supported approach is to create a custom Teams page using a List/Data Table with your own Data Resource (Lookup or Table), where you can control the condition and exclude AD groups as needed.

Best regards
Igor Matheus. 

Hi @IgorLima 

 

Thanks and no problem 

 

Instead i tried something like this is this a correct approach?

i directly use like this in filter condition

sys_idINjavascript:gs.getUser().getMyGroups()^typeNOT LIKEbb9f1513ebc95250b2bff25e1bd0cd15

 

suuriyas_0-1769958992457.png

 

 

I think this works but not sure will it affect any other things

 

I duplicate the teams page and in filter of sow management I click on the pen symbol (use static)  and added this condition itseems it filters only the groups which I'm part of and not the groups type is ad imported 

Note : I did not save/apply it but I can see the preview 

 

 

HI @IgorLima ,

 

I Applied this sys_idINjavascript:gs.getUser().getMyGroups()^typeNOT LIKEbb9f1513ebc95250b2bff25e1bd0cd15 and saved it. Once i saved it in the background i can see the correct groups (it is not showing ad group) but when i click on preview button at top right it gets loaded and under teams it shows nothing.

After adding filter at back it shows right groups:

suuriyas_0-1770014686235.png

Click on preview button :

suuriyas_1-1770015320950.png

 

Can you please help me understand why it is happening like this

 

Thanks in Advance