New Contributor

Hello, can anyone help please. 


I'm looking for any option how to: 

1. detect programmatically the feature "Join by code" is enabled

2. disable this setting


I was looking to GraphAPI reference and did not find anything. 


I consider this as a huge security gap, since you have no control who can access the Team. I know the code cannot be used for guests, but it still make sense to manage it even for internal users. 


Thank you, Jakub