KC7-Foundation / kc7

A cybersecurity game in Azure Data Explorer
https://kc7cyber.com
Apache License 2.0
162 stars 14 forks source link

assigning company titles to user via config #41

Closed kkneomis closed 2 years ago

kkneomis commented 2 years ago

Abstracted company info to a config. This also enables us to inject user role to the company

name: Acme Inc.
domain: acme.com
count_employees: 1000
roles:
  - title: Chief Executive Officer
    limit: 1
  - title: Chief Financial Officer
    limit: 1
  - title: Chief Marketing Officer
    limit: 1
  - title: Chief Information Security Officer
    limit: 1
  - title: Vice President
    limit: 10
  - title: IT associate
    limit: 999
  - title: Finance associate
    limit: 999
  - title: Marketing associate
    limit: 999
  - title: Human Resources associate
    limit: 999
  - title: Database administrator
    limit: 10