Automatically lock Mac after x amount of inactivity.

Automatically lock Mac after x amount of inactivity.

I have created a configuration to lock Windows PC's after 3 minutes of inactivity.
How can I create the same config for MacOS? For ISO Compliance, we need to ensure that all user laptops are automatically locking however, I have been unable to find anything to do this.

Thank you

                  New to ADSelfService Plus?