Users & Groups Management¶
Best practices for managing user access to Skigk Søkeapp.
User Authentication¶
Google OAuth Flow¶
When a user clicks "Logg inn med Google":
- Skigk Søkeapp redirects to Google OAuth endpoint
- User authenticates with Google Workspace account
- Google grants
drive.readonlypermission - User is logged in to Skigk Søkeapp
- Their Drive and Shared Drives become searchable
Access Control¶
Access is controlled by Google Drive permissions: - If user has access to a file → can search it - If user doesn't have access → cannot see results - Skigk Søkeapp respects all Google Drive permissions
Managing User Groups¶
Create a Google Group¶
- Go to Google Admin Console
- Users and accounts → Groups
- Click + Create Group
- Configure:
- Group name:
Finance-Team - Group email:
finance-team@skigk.no - Who can post:
All members - Who can view:
All members - Click Create
Add Members to Group¶
- Open the group
- Click Members
- Click + Add members
- Enter email addresses (or upload CSV)
- Click Add
Assign Shared Drives to Groups¶
Recommended Workflow¶
- Create a Google Group for each team/department
- Add users to the group
- Add the group to the Shared Drive
- Users automatically get access to Shared Drive and Skigk Søkeapp search
Example:
Finance Department
├─ Group: finance-team@skigk.no
│ ├─ john@skigk.no
│ ├─ alice@skigk.no
│ └─ bob@skigk.no
│
└─ Shared Drive: Finance
├─ Members: finance-team@skigk.no (Content Manager)
└─ Searchable via Skigk Søkeapp for all members
Offboarding Users¶
When a user leaves:¶
- Remove from Groups:
- Go to Google Admin Console
- Find the group
-
Remove user from members
-
Remove from Shared Drives:
- Go to Shared Drive → Settings → Members
-
Remove user
-
Disable Google Account:
- Admin Console → Users
- Find user → Click Disable
User's data in Skigk Søkeapp automatically becomes inaccessible.
Permissions Matrix¶
| Role | Can Search? | Can View Results? | Can Open Files? |
|---|---|---|---|
| Viewer | ✅ | ✅ (only accessible files) | ✅ (if permitted) |
| Contributor | ✅ | ✅ | ✅ |
| Content Manager | ✅ | ✅ | ✅ |
| Manager | ✅ | ✅ | ✅ |
| Non-member | ❌ | ❌ | ❌ |
Security Considerations¶
✅ Do: - Use Google Groups for team management - Regular audit of group membership - Remove users promptly after they leave - Use descriptive group names
❌ Don't: - Share OAuth credentials - Give users direct Workspace admin access - Store API keys in version control - Use weak passwords for admin accounts
Monitoring & Auditing¶
View Skigk Søkeapp Activity¶
- Go to Google Admin Console
- Security → Security Checkup
- Check for unauthorized app access
User Access Report¶
- Go to Users and accounts → Users
- Select a user
- Check Connected apps & sites
- Verify Skigk Søkeapp is authorized