System User validity

Hi,

Is there is way to assign a validity period when creating a system user through REST api. This would decide the duration for which the system user is active. After which it should get deleted automatically.

I need this feature for security reason, where the system user gets deleted automatically and can be only created using rest api through websocket.

Hi @rahul-tt,

Currently, it is not possible to assign validity duration to a user created with Snapd REST API. However, as you can create users with REST API, you can also remove them. Maybe as an interim solution, you could create a cron job that checks available users on the devices and remove them.