Project

General

Profile

How can I auto-assign a role to alternatively-authed users created on-the-fly?

Added by Simon Pittock over 10 years ago

I have successfully linked Redmine to another database and am able to accept new users based on those credentials. I cannot fathom how to assign them a role automatically however. I am a complete newcomer to redmine and indeed Ruby, I've been thrown in at the deep end a bit here so it's possible I've missed something.

Basically I have three roles - admin, developer, user (reporter) and I want all users auth'ed through the external database to become "user" automatically so that they can start reporting, based on the permissions I have set for that role.

I'm really desperate and can't see how to achieve this so if anyone can assist I'll be eternally grateful! I'm an experienced PHP developer so I'm not punching above my weight and can handle the concepts of plugins and the hook system etc., I'm just totally unfamiliar with Ruby (except for that which I've learned setting this up of course!)