How to pre-populate default tenant

i followed the YT video to construct a SAAS platform, with each record is tie to a unique tenant.
But my challenge is, it’s annoyed if user need to manually select tenant, even most of the time they belongs to one tenant (a user can be in multiple tenant if needed)

is there are trick (without extension or customized script), i could use standard feature to pre-populate their tenant which tie to user if the user only have one tenant? e.g. user.tenants[0].id

update 10 May 2025:

a pic speak thousand words. i tried 3 different combination, string field is working but not relationship field

If a user is in multiple tenants, how would it know which one to use as the default?

I’d suggest you look at using a event hook Flow. You can use a ‘filter’ event and add the logic to automatically add in the current user’s tenant.

You can do exactly what you’re referring to in the Field Presets for any Create and Update Permissions.

{
    "populate_this_field_from_user": "$CURRENT_USER.tenants[0]"
}

If you know you’ll have a lot of folks that are a part of different teams or tenants, you could add an additional relational field on the user level for current_tenant or active_tenant or whatever you prefer the naming convention to be. You’d set that once when the user is created or added to a tenant. And then give them the option to switch to a different tenant if they are part of more than one.

The only caveat there is we don’t have a prebuilt UI component or interface for the user to “switch tenants” so that’s something you’d have to build as a custom extension.

If you don’t want to create a custom extension, you could probably also just make it a flow they could run from any collection as well in you’re using the Data Studio as the “frontend” for your SaaS users.