Initial organizational structure
- Add engineering group - Add vaibhav.pathak user for testing Google OAuth - Add guest user
This commit is contained in:
commit
541866cdd0
31
README.md
Normal file
31
README.md
Normal file
@ -0,0 +1,31 @@
|
||||
# OSMOS Organizational Structure
|
||||
|
||||
This repository contains the organizational structure for Backstage:
|
||||
- User entities
|
||||
- Group entities
|
||||
- Team hierarchies
|
||||
|
||||
## Adding Users
|
||||
|
||||
To add new users for Google OAuth authentication:
|
||||
|
||||
1. Edit `org.yaml`
|
||||
2. Add a new User entity with `metadata.name` matching the email local part (before @)
|
||||
- For email `john.doe@onlinesales.ai`, use `metadata.name: john.doe`
|
||||
3. Commit and push changes
|
||||
4. Backstage will automatically sync within a few minutes
|
||||
|
||||
## Example User Entity
|
||||
|
||||
```yaml
|
||||
---
|
||||
apiVersion: backstage.io/v1alpha1
|
||||
kind: User
|
||||
metadata:
|
||||
name: john.doe # Must match email local part
|
||||
spec:
|
||||
profile:
|
||||
displayName: John Doe
|
||||
email: john.doe@onlinesales.ai
|
||||
memberOf: [engineering]
|
||||
```
|
||||
30
org.yaml
Normal file
30
org.yaml
Normal file
@ -0,0 +1,30 @@
|
||||
---
|
||||
apiVersion: backstage.io/v1alpha1
|
||||
kind: Group
|
||||
metadata:
|
||||
name: engineering
|
||||
description: Engineering team
|
||||
spec:
|
||||
type: team
|
||||
profile:
|
||||
displayName: Engineering Team
|
||||
children: []
|
||||
---
|
||||
apiVersion: backstage.io/v1alpha1
|
||||
kind: User
|
||||
metadata:
|
||||
name: vaibhav.pathak
|
||||
spec:
|
||||
profile:
|
||||
displayName: Vaibhav Pathak
|
||||
email: vaibhav.pathak@onlinesales.ai
|
||||
memberOf: [engineering]
|
||||
---
|
||||
apiVersion: backstage.io/v1alpha1
|
||||
kind: User
|
||||
metadata:
|
||||
name: guest
|
||||
spec:
|
||||
profile:
|
||||
displayName: Guest User
|
||||
memberOf: [engineering]
|
||||
Loading…
x
Reference in New Issue
Block a user