I think some more info would be useful, but I’m assuming you have a reference selector? In that case, you can go to the properties of the reference selector. Go to the tab Selectable objects. Here you can restrict the selectable options. For more info:
https://docs.mendix.com/refguide/reference-selector#selectable-objects-properties