You can use conditional access(https://learn.microsoft.com/en-us/entra/identity/conditional-access/overview),
Here’s a high-level overview of how you might set this up:
- Define the Conditions: You can create conditions based on signals such as user or group membership, IP location information, device information, and application. In your case, you would define a condition based on the network location (i.e., the specific WiFi network). https://learn.microsoft.com/en-us/entra/identity/conditional-access/concept-conditional-access-conditions
- Create the Access Policy: Conditional Access policies are essentially if-then statements. For example, you could create a policy that states: “If a user wants to access a resource, then they must complete an action.” In your case, the action would be logging in with Entra ID.
- Enforce the Policy: Conditional Access policies are enforced after the first-factor authentication is completed. So, once a user connects to the specific WiFi network and tries to access a resource, they would be prompted to log in with their Entra ID.
Hope this helps!
Please accept the answer if it helps.