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 Suuriyas,
Since the original Teams view was OOTB and you cloned it, the key question is where the data is coming from.
Cloning a page does not automatically give you control over the query. You can only filter what the component’s Data Resource exposes.

 

If the Teams list is backed by a Lookup or Table Data Resource, you can exclude AD groups directly in the condition (no scripts needed).

If it’s still using an encapsulated OOTB Data Resource, the filter is internally controlled and may not be customizable, even after cloning.

Please confirm which Data Resource is feeding the Teams list on the cloned page.



See you!

Hi Suuriyas,
Since the original Teams view was OOTB and you cloned it, the key question is where the data is coming from.
Cloning a page does not automatically give you control over the query. You can only filter what the component’s Data Resource exposes.

If the Teams list is backed by a Lookup or Table Data Resource, you can exclude AD groups directly in the condition (no scripts needed).

If it’s still using an encapsulated OOTB Data Resource, the filter is internally controlled and may not be customizable, even after cloning.

Please confirm which Data Resource is feeding the Teams list on the cloned page.|


See you!

IgorLima
Tera Contributor

Hi Suuriyas,

Since the original Teams view was OOTB and you cloned it, the key point now is not the filter syntax, but where the data is coming from.

In UI Builder, cloning a page does not automatically give you control over the underlying query. You can only filter what the component’s Data Resource exposes.

To move forward, please confirm this first:

  • Which component is rendering the Teams list on the cloned page?
  • Which Data Resource is feeding that component (Lookup, Table, Scripted, or an encapsulated OOTB resource)?

If the Teams list is backed by a Lookup or Table Data Resource, you can simply exclude AD groups directly in the condition (for example, by filtering on group type/source). No scripts or formulas are required.

If the cloned page is still using an encapsulated OOTB Data Resource, then the filter is internally controlled, and even after cloning, it may not be fully customizable.

So the next step is to identify the Data Resource behind the Teams view. Once that is clear, the correct and supported filtering approach becomes straightforward.

Best regards,
Igor Matheus

IgorLima
Tera Contributor

When you clone the Teams page, the filter must be applied in the Data Resource used by the Teams list, not in the navigation.

In UI Builder, check which Data Resource is bound to the Teams component (Lookup/Table vs OOTB).


If it’s a Lookup or Table Data Resource, you can exclude AD groups directly in the condition.


If the component is still using an OOTB data source, the query is not fully editable even after cloning.


Which Data Resource is bound to your Teams list?

See you!
Igor Matheus

IgorLima
Tera Contributor

When you clone the Teams page, the filter must be applied in the Data Resource used by the Teams list, not in the navigation.

In UI Builder, check which Data Resource is bound to the Teams component (Lookup/Table vs OOTB).


If it’s a Lookup or Table Data Resource, you can exclude AD groups directly in the condition.


If the component is still using an OOTB data source, the query is not fully editable even after cloning.


Which Data Resource is bound to your Teams list?

See you!
Igor Matheus