I want to set the auto-lock time for the screen
You can enforce the use of auto-lock by setting Maximum Auto-Lock in the Passcode payload of the profile.
However, the time you specify here sets the longest time that can be selected on the device. It does not set the device to that time.
The time specified in the profile is applied to the device only if it is shorter than the time already set on the device.
Last updated: November 16, 2022