added assignRole()

Signed-off-by: Andreas Heiberg <git@andreas-heiberg.com>