[Building Sakai] Can't find user when grant ability

Raad Al-Rawi Raad.Al-Rawi at admin.cam.ac.uk
Mon Nov 28 03:47:27 PST 2011


Hi Wendy
Actually, adding users using the realms method gives the same end result as adding them using "Site Info" - it's not possible to add users to a site using Realms in such a way that they do not appear in "Site Info", even for the Admin workspace (unless I'm very much mistaken).

However, it seems to me that your main problem is with user records. Are you just using the internal Sakai user table, or do you use an external user provider?
If you just use the internal Sakai users, you should see a list of users by going to "Admin Workspace" then the "Users" tool.

If you do see some users, try adding one to the Admin workspace using "Site Info" then "Add participants" - you should be able to do this by putting their userid in the top text box and following the steps - you can just test this works and abort at the last step.

Best

Raad

From: wendy lee [mailto:lhh at mail.sysu.edu.cn] 
Sent: 28 November 2011 01:55
To: Raad Al-Rawi; sakai-dev
Subject: Re: RE: [Building Sakai] Can't find user when grant ability

Hi Raad,
 
According to your solution admin users can be added and the user exists by "View user info". Thank you.
 
I want to add admin users without adding them to the Administrative Workspace site according to https://confluence.sakaiproject.org/display/DOC/Sakai+Admin+Guide+-+Configuring+Sakai+from+within+the+Web+Application 
 
1. Create a new user following the first 5 steps above. 
2. Under the "Administration Workspace" site, open the "Realms" tool. 
3. Enter "/site/!admin" in the search field and hit the "Search" link. 
4. Click the "/site/!admin" link that appears in the list of results. 
5. Click the "Grant Ability" link at the top of the screen that appears. 
6. Enter the id of the user created above in the "User Id:" text box, select the "admin" role, then click "Done". 
 
I can find users before but not now. Can't find any user even "admin" in step 6.
I added users with userDirectoryService.addUser and deleted users with "Users" then "Remove User". I believe that there is something wrong with database tables. Shall I restore database?
 
________________________________________
  
wendy lee
 
From: Raad Al-Rawi
Date: 2011-11-25 22:37
To: wendy lee; sakai-dev
Subject: RE: [Building Sakai] Can't find user when grant ability
Hi Wendy
 
You probably want to check the user exists, and you can give someone access to the !admin workspace by going to the !admin site, then the "Site Info" tool, then use "Add participants".
You can check if the user exists by going to the "Become User" tool, then putting the user's userid in the box and clicking "View user info" (there are other ways, but this is my preferred way).
 
Hope that helps
 
Raad
 
> -----Original Message-----
> From: sakai-dev-bounces at collab.sakaiproject.org [mailto:sakai-dev-
> bounces at collab.sakaiproject.org] On Behalf Of wendy lee
> Sent: 25 November 2011 03:47
> To: sakai-dev
> Subject: [Building Sakai] Can't find user when grant ability
> 
> hi, all
> 
> I want to grant admin role to someone. So I edit realm "/site/!admin" and
> click "Grant Ability". Yet I can't find my user inside the "Set the Role for this
> User" page (!admin-355).
> I am sure the user exists and I had successfully granted roles to somebody
> else before. I try to edit other realms and can't find users too. Nothing
> reports in tomcat log. I want to debug sakai.realm codes, but I am not sure
> where the code is. Can you help me?
> 
> --------------
>  wendy lee
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> 
> TO UNSUBSCRIBE: send email to sakai-dev-
> unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"


More information about the sakai-dev mailing list