permission to create surveys

More
2 months 2 days ago #196223 by torearcada
Hello!
Our local Limesurvey installation is integrated over SSO. Thus, all our staff and students can easily log in to our LS. The problem is, after logging in, our Installation Administrator has to grant them permission to create surveys, which causes a lot of manual work.

We'we tried to search the manual for a solution, without success. We would like to:
- create a group (e.g. "standarduser") and grant the members of that group the right to create surveys
- find a setting so that all new users would automatically be members of the "standarduser" group.

Is this possible?

Best regards,

Tore

Please Log in to join the conversation.

LimeSurvey Partners
More
2 months 2 days ago #196258 by DenisChenu
What is your Auth plugin ?

This Auth plugin must offer some "default rights".

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
2 months 2 days ago #196263 by Jmantysalo
I did a plugin to get shibboleth login. In that I wrote
public function newUserSession()
{
    $sUser = $this->getUserName();
    $oUser = $this->api->getUserByName($sUser);
    if (is_null($oUser)) {
            # Creating a new user.
            . . .
            if ($oUser->save()) {
                // read again user from newly created entry
                Permission::model()->setGlobalPermission($oUser->uid, 'surveys', array('create_p'));
                Permission::model()->setGlobalPermission($oUser->uid, 'templates', array('read_p'));
                $this->setAuthSuccess($oUser);

Maybe this helps.

Please Log in to join the conversation.

More
2 months 2 days ago #196266 by DenisChenu
I like the way Authwebserver do it
github.com/LimeSurvey/LimeSurvey/blob/6e...thwebserver.php#L130
+
github.com/LimeSurvey/LimeSurvey/blob/6e...faults.php#L207-L209

But AuthLDAP didn't have any system ? Must use same param (by option maybe).

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now