-
Notifications
You must be signed in to change notification settings - Fork 48
Give tenant user admin role
Tim Donohue edited this page Sep 12, 2017
·
2 revisions
To give an existing user the tenant admin role. This role allows the user to manage/administer a single, specific tenant.
- Login to global tenant as a superadmin user. If you don't yet have a superadmin, see Create super admin user
- Click on the "Accounts" menu in the header
- Find the tenant in the list of tenants, and click the "Manage" button next to that tenant.
- You will now see a list of all current tenant administrators, along with an option to "Add or invite new administrator (via email)"
- To add a new tenant administrator, simply enter their email address and click "Add".
- If the user already has an account (associated with that email address) on that tenant, they will immediately become an administrator of that tenant.
- If the user does not yet have an account on that tenant, they will receive an email invitation to create an account. After creating an account, they will become an administrator of that tenant.
- SSH to the webapp instance in the stack, see instructions here
- Open a rails console, see instructions here
- Switch into the tenant:
AccountElevator.switch!('tenant.host.name.here')
- Grab the user instance:
user = User.find_by(email: 'some.person@institution.edu')
- Add the role for the current site instance:
user.add_role(:admin, Site.instance)