Bintang Adinandra
03/17/2026, 5:29 PMdavid
03/17/2026, 6:25 PMAsk Inkeep
03/17/2026, 6:25 PMAsk Inkeep
03/17/2026, 6:25 PMSyncUser function. (1)
When syncing a user, you can include role_assignments in the user object to immediately associate them with a role and tenant. (2) The payload structure supports this:
var userObj = new UserCreate{
Key = "key",
Email = "<mailto:email@example.com|email@example.com>",
First_name = "John",
Last_name = "Smith",
Attributes = {}
};
(1)
To assign the user to a tenant with a role during creation, include the role_assignments field in your request. (2) This allows you to streamline the user creation process by immediately associating them with the appropriate role and tenant.
If you create the user without role assignments, they will appear in the Directory under All Tenants. You can then assign roles to users to link them to specific tenants.
Users are assigned to tenants via a role. (3) To indicate a resource instance belongs to a tenant, provide the tenant key (or id) as part of the resource object when calling permit.check() .Ask Inkeep
03/17/2026, 6:25 PMAsk Inkeep
03/17/2026, 6:42 PM