Creating SSO user assertion file

Hey, I would like to create an assertion file for an SSO user, so that I can place it on a USB stick and automatically import this SSO user into a device. This will help us for testing and debug images that console-conf is disabled.

I’ve already done this for a system user by either obtaining the assertion file from SerialVault or by creating a JSON file and signing it with:

cat system-user.json

{
    "type": "system-user",
    "authority-id": "salto-device-platform",
    "series": ["16"],
    "brand-id": "salto-device-platform",
    "email": "a.cengiz@saltosystems.com",
    "models": ["salto-intercom-panel-factory"],
    "name": "AIC System User created by CLI",
    "username": "aliihsancengiz",
    "password": "$6$12345678$XXXXXXXXX",
    "since": "2020-05-16T18:06:04+00:00",
    "until": "2064-05-16T18:06:04+00:00"
}


# with a brand store owner identity
snap sign -k model system-user.json --chain > auto-import.assert 

Although those approaches are useful, we want to create assertion file for SSO users too, any ideas or suggestions are welcome.