Users: Onboarding and Offboarding¶
Access to the Posit platform is granted in three separate places. Plan onboarding and offboarding as a checklist that touches all three.
| Product | How access is granted | Default role |
|---|---|---|
| Workbench | Any user who can authenticate and has a Linux account and home directory | Standard user; admin if in admin-group1 |
| Connect | IdP login with RegisterOnFirstLogin = true creates the account |
DefaultUserRole (default viewer)2 |
| Package Manager | Tokens for authenticated repositories | Read only3 |
Onboarding¶
Home directories¶
Workbench never creates home directories itself; user provisioning only assigns the path. Options:
pam_mkhomedir(oroddjob-mkhomedir) in the PAM stack, creating/home/<user>on first login4- SSSD with
override_homedirpointing to NFS, plus automount - Workbench user provisioning (SCIM or JIT), which assigns a home path5
- Pre-provisioning by an admin
No home directory, no session
A user who authenticates but has no home directory gets a session that fails immediately. Verify before first login.
Check the account and home directory:
Create a home directory manually:
Defaults worth checking¶
| Item | Typical default | Notes |
|---|---|---|
| Home directory mode | 0700 |
Set via UMASK in /etc/login.defs or the mkhomedir umask option |
| Primary group | From AD or IdP | Matters for shared project directories |
| Supplementary groups | AD groups | Drives admin-group, resource profiles, Connect group sync |
| R user library | ~/R/x86_64-pc-linux-gnu-library/<major.minor>/ |
Created on first install.packages(); prompt appears in RStudio6 |
Connect publishers¶
New Connect users are viewers. Promote in the dashboard (People page), the Server API, or the CLI:
With the SQLite database provider, stop Connect before running usermanager. With PostgreSQL it runs while Connect is up.7
Offboarding¶
flowchart LR
Disable("Disable IdP / AD account") --> Sessions("End Workbench sessions")
Sessions --> LockWB("Lock Workbench user<br/>(frees license seat)")
LockWB --> LockCon("Lock Connect account<br/>(each environment)")
LockCon --> Transfer("Transfer Connect content")
Transfer --> Archive("Archive home directory")
style LockWB fill:#e8f1f8,stroke:#447099,stroke-width:2px,color:#1a1a1a
style LockCon fill:#fdf1e3,stroke:#c9822b,stroke-width:2px,color:#1a1a1a
-
Disable the account in the IdP or AD. This stops new logins everywhere.
-
End active Workbench sessions:9
active-sessions lists only local R sessions; sessions on other nodes or started through the Job Launcher are not included. For a Launcher session, pass its ID (the last eight characters of the session URL) instead of a PID.8
- Lock the Workbench user. Under named user licensing, locked users no longer count against the license even if they previously logged in:10
If you use user provisioning, add --force so the user is signed out right away.10
- Lock the Connect account on every Connect environment where the user exists:7
Locking keeps content running and does not consume a license seat. Scheduled content owned by a locked user keeps running, but the locked user stops receiving emails.2
- Transfer ownership of their content to a team account or manager:7
sudo /opt/rstudio-connect/bin/usermanager transfer --source-username <username> --target-username <new-owner>
- Archive the home directory:
Do not delete home directories right away
Published content sometimes reads data from a home directory, and colleagues may reference shared files there. Archive, wait for your retention period, then delete. In regulated work, the retention period is usually set by your records management SOP.
Troubleshooting¶
| Symptom | Likely cause | Check |
|---|---|---|
| Login fails for one user only | Account locked or disabled in AD, not in allowed group | id <user>, /var/log/secure |
| Login fails for everyone | SSSD down, AD unreachable, clock skew (Kerberos) | systemctl status sssd, chronyc tracking |
| Session starts then dies | Missing home dir, NFS mount gone, UID mismatch | getent passwd <user>, df -h, rserver.log |
403 on /admin |
User not in admin-group |
id <user> |
| Intermittent "session not found" | server-shared-storage-path unreachable |
df -h, dmesg | grep -i nfs |
| Kerberos tickets missing in session | auth-pam-sessions-use-password off, PAM profile wrong |
rserver.conf, /etc/pam.d/rstudio-session |