commit 541866cdd09ee72bdfd7fb9cc1475ae9651ce2de Author: Vaibhav Pathak Date: Fri Jan 16 12:56:38 2026 +0530 Initial organizational structure - Add engineering group - Add vaibhav.pathak user for testing Google OAuth - Add guest user diff --git a/README.md b/README.md new file mode 100644 index 0000000..794bbeb --- /dev/null +++ b/README.md @@ -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] +``` diff --git a/org.yaml b/org.yaml new file mode 100644 index 0000000..f1ec779 --- /dev/null +++ b/org.yaml @@ -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]