- Posts: 9
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
permission to create surveys
- torearcada
- Topic Author
- Offline
- New Member
Less
More
4 years 3 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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13642
- Thank you received: 2491
4 years 3 weeks ago #196258
by DenisChenu
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.
Replied by DenisChenu on topic permission to create surveys
What is your Auth plugin ?
This Auth plugin must offer some "default rights".
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.
- Jmantysalo
- Offline
- Platinum Member
Less
More
- Posts: 348
- Thank you received: 41
4 years 3 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
Maybe this helps.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13642
- Thank you received: 2491
4 years 3 weeks ago #196266
by DenisChenu
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.
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).
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.