Skip to content

Managing admin roles from command line

pekman edited this page Mar 26, 2012 · 2 revisions

To prevent chicken-and-egg problems in assigning administrator roles, there are rake tasks that can be used to grant and revoke administrator roles from the command line.

Administrator role can be granted with the following command:

rake role:grant:admin[<id>]

and revoked with the following command:

rake role:revoke:admin[<id>]

<id> can be either the user's local numeric id or ASI id. The user must have logged in to Aalto Apps at least once in the past.