3CX has the possibility to sync only users that are member of a specific group in the AD. Make a new group "telephony" in your M365 and place users that will get an account in 3CX in this group. In the user part of 3CX in the M365 settings set sync to only this group..
Now you can manage the...