Identity and roles
The Posit Team Native App signs users in with their Snowflake user and controls access with Snowflake application roles. This page explains where user identity comes from and how account roles map to application roles. It also lists the application roles and shows how to find out why a user is missing a role.
User identity
Posit Team has no user accounts of its own. Every product signs users in with their Snowflake user, so the Snowflake user is the source of truth for identity in Posit Team.
Snowflake controls both who a user is and what they can do:
- Posit Team reads each user’s identity and application roles from Snowflake. It does not create Snowflake users, grant roles, or change privileges. You manage all of these in Snowflake or through your IdP.
- When Posit Workbench or Posit Connect reaches Snowflake data, Snowflake applies the roles and privileges of the signed-in user. A Connect service account integration uses the service user that an administrator configures instead. Posit Team cannot grant access that Snowflake does not already allow. See Managed credentials.
We recommend that you connect your identity provider (IdP) to Snowflake before you install Posit Team:
- Use single sign-on so users sign in to Snowflake with their IdP account.
- Use System for Cross-domain Identity Management (SCIM) provisioning so your IdP creates and updates Snowflake users, and provisions IdP groups as Snowflake account roles. See Recommended role structure.
We strongly discourage creating Snowflake users by hand:
- Users you create by hand stay active when someone leaves your organization. With SCIM, disabling the user in your IdP disables them in Snowflake.
- Snowflake does not charge extra for single sign-on or SCIM.
- A Snowflake user has only the privileges you grant them. Provisioning a user into Snowflake does not let them create resources or use warehouses on their own, so it does not add cost.
Your Snowflake representative can help you set up single sign-on and SCIM, and can talk through any concerns about adding your users to Snowflake. If users see too many Snowflake sign-in prompts, see How can I reduce repeated Snowflake sign-in prompts?.
Posit Team reads each user’s details from Snowflake:
| Field | Source |
|---|---|
| Username | The Snowflake user name. It is always available. |
| First and last name | The Snowflake user profile. Requires the caller grant in Configure Snowflake, which lets Posit Team describe the user. Without it, the names are empty. See User names and email. |
The Snowflake user profile, with the same caller grant. Without it, the email comes from the Sf-Context-Current-User-Email ingress header, which Snowflake enables on request. |
|
| Application roles and groups | The application roles active for the user. See How roles reach Posit Team. |
When a user’s details change in your IdP, SCIM updates the Snowflake user. Posit Team reads the new values within an hour, or when the user clicks Refresh in the user menu. Each product receives them at the user’s next sign-in to that product.
Workbench username
Workbench runs sessions as a Linux user, and Linux usernames are limited to 32 characters. Workbench derives the username from the Snowflake user name:
- It replaces
@with.. For example,ALICE@EXAMPLE.COMbecomesALICE.EXAMPLE.COM. - It keeps the first 32 characters.
The username also names the user’s home directory. Keep these consequences in mind:
- Two Snowflake users whose names match in the first 32 characters, after replacing
@, share one Workbench user and home directory. Make sure Snowflake user names differ within the first 32 characters. - If a user’s Snowflake user name changes, Workbench treats them as a new user with a new, empty home directory. Copy files from the old home directory if the user needs them.
How roles reach Posit Team
Access passes through three layers:
| Layer | Owned by | Example |
|---|---|---|
| Account role | Your Snowflake account | DATA_SCIENCE_PUBLISHERS |
| Application role | The Posit Team Native App | POSIT_TEAM.POSIT_CONNECT_PUBLISHER |
| Product role or group | Connect, Workbench, or Posit Package Manager | Connect publisher, member of the Connect group POSIT_CONNECT_PUBLISHER |
An administrator grants application roles to account roles, and grants account roles to users. Posit Team sees only application roles. It cannot see the names of your account roles. Refer to the Snowflake roles documentation for more about the types of roles.
Recommended role structure
Grant application roles to account roles that your IdP manages, so that you never grant access one user at a time:
Create a group in your IdP for each level of access, such as data science publishers and data science viewers.
Provision the groups to Snowflake with SCIM. Each group becomes a Snowflake account role, and SCIM keeps its members in sync.
Grant the Posit Team application roles to those account roles once:
Snowsight UI
GRANT APPLICATION ROLE POSIT_TEAM.POSIT_CONNECT_PUBLISHER TO ROLE DATA_SCIENCE_PUBLISHERS; GRANT APPLICATION ROLE POSIT_TEAM.POSIT_CONNECT_VIEWER TO ROLE DATA_SCIENCE_VIEWERS;
After that, adding a user to an IdP group gives them access, and removing them takes it away. You do not need to change anything in Snowflake for each user.
Avoid these patterns:
- Granting application roles directly to users. Each new user then needs a new grant, and access drifts from your IdP.
- Setting each user’s default role to reach Posit Team. Posit Team sees the roles granted through a user’s default role and secondary roles, so this is only needed when secondary roles are blocked. See Secondary roles are turned off.
Application roles
Posit Team creates these POSIT_* application roles. POSIT_TEAM_ADMIN and POSIT_TEAM_USER apply to every product. The other roles apply to one product. A user who has none of a product’s roles cannot open that product.
| Role | Purpose |
|---|---|
POSIT_TEAM_ADMIN |
Grants all admin permissions across Posit Team products. Includes all permissions from POSIT_CONNECT_ADMIN, POSIT_PACKAGE_MANAGER_ADMIN, and POSIT_WORKBENCH_ADMIN.We recommend granting this application role sparingly. A user with this role can manage all Posit Team products. |
POSIT_TEAM_USER |
Grants all user permissions across Posit Team products. Includes all user permissions from POSIT_CONNECT_PUBLISHER, POSIT_CONNECT_VIEWER, POSIT_PACKAGE_MANAGER_USER, and POSIT_WORKBENCH_USER. |
POSIT_WORKBENCH_ADMIN |
Grants access to Workbench administrative functions. Also grants all permissions that the POSIT_WORKBENCH_USER has.We recommend granting this application role sparingly. A user with this role can manage Workbench. |
POSIT_WORKBENCH_USER |
Can access Workbench and view the status of the service. |
POSIT_CONNECT_ADMIN |
Grants access to Connect administrative functions. Also grants all permissions that the POSIT_CONNECT_PUBLISHER and POSIT_CONNECT_VIEWER have.We recommend granting this application role sparingly. A user with this role can manage Connect. |
POSIT_CONNECT_PUBLISHER |
Can publish content within Connect. |
POSIT_CONNECT_VIEWER |
Can view content within Connect. |
POSIT_PACKAGE_MANAGER_ADMIN |
Grants access to Package Manager administrative functions. Also grants all permissions that the POSIT_PACKAGE_MANAGER_USER has.We recommend granting this application role sparingly. A user with this role can manage Package Manager. |
POSIT_PACKAGE_MANAGER_USER |
Can access Package Manager and view the status of the service. |
Each product decides what its roles allow. See the application roles section for each product:
Custom application roles
Custom application roles let you group users within Posit Team. A user with POSIT_TEAM_ADMIN can create and delete them from User Roles and Access on a product’s management page. A custom role name cannot start with POSIT, in any combination of uppercase and lowercase letters.
Grant a custom role to account roles the same way as a POSIT_* role, ideally to an account role that SCIM manages. See Recommended role structure. Snowflake activates custom roles the same way, so the same debugging steps apply. The user menu lists a user’s custom roles under Groups.
Posit Team passes each user’s custom roles to every product as groups. Connect is the only product that uses them. See Connect groups.
A custom role does not let a user open a product. The user also needs one of that product’s POSIT_* roles.
Grant application roles
You can grant application roles with SQL or in the Snowsight UI. Grant each application role to an account role, then grant the account role to users. Replace the account role names and POSIT_TEAM, the application name, with the names in your Snowflake account.
Snowsight UI
GRANT APPLICATION ROLE POSIT_TEAM.POSIT_TEAM_USER TO ROLE MY_USER_ROLE;
GRANT APPLICATION ROLE POSIT_TEAM.POSIT_TEAM_ADMIN TO ROLE MY_ADMIN_ROLE;
GRANT ROLE MY_USER_ROLE TO USER "ALICE@EXAMPLE.COM";You can grant users either specific product roles, such as POSIT_CONNECT_PUBLISHER or POSIT_WORKBENCH_USER, or the POSIT_TEAM_USER role, which includes all product user roles.
To grant access through the UI, click Access management in the top navigation bar.
Select a role and grant the desired application roles.
Snowflake turns on secondary roles for all users by default (BCR-1692). Posit Team sees the application roles granted to any of a user’s roles. Users with higher privileges, such as ACCOUNTADMIN, can access the Posit Team Native App even if you have not granted them access explicitly.
If you block secondary roles with a session policy, Posit Team sees only the application roles granted to each user’s default role. See Secondary roles are turned off.
When roles are checked
Posit Team checks a user’s application roles when they sign in:
- Posit Team asks Snowflake which application roles are active for the user. Snowflake activates the user’s default role, plus their secondary roles when secondary roles are turned on. Grants that are not reachable from those roles do not count.
- Posit Team keeps the result for up to one hour.
- Each product receives the roles when the user signs in to that product. A product does not see a role change until the user’s next sign-in to that product.
After you change grants for a user, ask the user to complete these steps:
- Click their username in the top right of Posit Team, then click Refresh.
- Sign out of the product, then sign back in.
Debugging missing application roles
Check what Posit Team detected
Ask the user to click their username in the top right of Posit Team, click Refresh, and then open the menu again. The menu lists the user’s application roles and groups as Posit Team detected them.
- If the role is missing from the menu, Snowflake did not activate it for the user. See Role missing from the menu.
- If the role is in the menu but missing from the product, the product has not received it yet. See Role missing from the product.
Role missing from the product
Products receive roles only when the user signs in to them. Have the user sign out of the product and sign back in. Then check the user’s role or group membership in the product’s administration pages.
Contact support
If the role is still missing, contact Posit support and include the following information:
- A screenshot of the user menu after clicking Refresh
- The output of
SHOW GRANTS TO USERfor the user andSHOW GRANTS OF APPLICATION ROLEfor the missing role - The diagnostics bundle from the Posit Team System page


