Blocking updates to a segment

Your software
My Mautic version is: v4.4.5
My PHP version is: 7.4.33
My Database type and version is: percona/percona-server:5.7

Your question

I have a segment driven off of data loaded from an API. It is important that other user’s in Mautic not be able to add contacts to this segment. What is the best way to keep this segment clean so it is accurate only to the criteria in the segment and does not allow exceptions to the filters?

If it can’t be blocked somehow, the API allows me to remove contacts from the segment but identifying any that don’t match the filter looks pretty inefficient. I would need to get all contacts then make an API to check to see if they are in that segment or not then make the change if necessary. Kind of like looking for a needle in a haystack.

Maybe I should dig into the tables and come up with a query to do this?

Thank you,
Jimmy

Here is an example how I solved it:

One way you could go about “blocking” the segment from others touching it would be in the User Roles Permissions, and inside the role for Mautic Users to define them as only being able to view others but not edit others, and then have your API in a different role.