Setting up and managing device configurations using Intune
Hi,
For mobile device, not a user, then it is manging via Device restriction policy.
iOS - https://learn.microsoft.com/en-us/mem/intune/configuration/device-restrictions-ios#password
Android - https://learn.microsoft.com/en-us/mem/intune/configuration/device-restrictions-android-for-work#device-password
Please mark the answer if it helps you.