Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

permission to create surveys

  • torearcada
  • torearcada's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 weeks ago #196223 by torearcada
permission to create surveys was created 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
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 weeks ago #196258 by DenisChenu
Replied by DenisChenu on topic permission to create surveys
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 .
I don't answer to private message.
The topic has been locked.
More
4 years 2 weeks ago #196263 by Jmantysalo
Replied by Jmantysalo on topic permission to create surveys
I did a plugin to get shibboleth login. In that I wrote
Code:
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.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 weeks ago #196266 by DenisChenu
Replied by DenisChenu on topic permission to create surveys
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 .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose