Administration Workspace

39 views
Skip to first unread message

Ali Hassan

unread,
Jun 26, 2025, 2:05:10 PMJun 26
to Sakai Development
Hi Hassan here !

On the admin account I can see the Administration Workspace but now I want to move this Administration Workspace > specific tabs to the other users that are maintain type 

I tries to map it's registeration number to other users 

INSERT INTO SAKAI_SITE_PAGE VALUES('!user-1900', '!user', 'Academic Term Manager', '0', 22, '0' );
INSERT INTO SAKAI_SITE_TOOL VALUES('!user-1910', '!user-1900', '!user', 'sakai.acadtermmanage', 1, 'Academic Term Manager', NULL );


Now it is showing but when I click then getting error 
is this related to permissions or something else

  I attempted to map the tool using the following SQL:  
INSERT INTO SAKAI_SITE_PAGE VALUES('!user-1900', '!user', 'Academic Term Manager', '0', 22, '0' );
INSERT INTO SAKAI_SITE_TOOL VALUES('!user-1910', '!user-1900', '!user', 'sakai.acadtermmanage', 1, 'Academic Term Manager', NULL );

The tab now appears for the user, but clicking on it results in an error.

Is this related to missing permissions, or is there another configuration required to enable this functionality for maintain-type users?

Is there a recommended way to grant access to these admin tools for non-admin users?


is there any way to do that 
 

Hendrik Steller

unread,
Jun 26, 2025, 11:41:05 PMJun 26
to Ali Hassan, Sakai Development
Hi Hassan,

I would recommend adding tools to sites by using the "sites" tool in the admin
workspace (and there looking for the site and then doing new page->new tool)
instead of doing SQL statements.

Otherwise it will depend on the specific tools if they work in other sites /
for users who aren't admins.

For example, when I wrote the sakai.acadtermmanage tool, it was using sakai's
course management API, which was checking if the user is an admin instead of
checking permissions, which one could have granted to other roles/users than
admins.
So it didn't make sense for the term manager to check for assignable
permissions because it was using APIs which required the admin role.

Then again, the tool should contain a boolean switch to change that behavior
to doing a permission check instead of an admin role check in case the course
management API ever changes this. So if the course management API has changed
that behavior since the term manager tool was written, the tool could work for
other users by flipping that boolean.
(The term manager was the first tool I ever wrote as an exercise following a
development how-to, so its main code was written for Sakai 2.x about ~12
years ago. Maybe the coursemanagement API has changed in the meantime..)


But again / tl;dr:
In my experience it depends on the specific tool if it will work in other sites
/ for non-admins.

Best regards,
Hendrik

On 26.06.25 20:05:09 CEST Ali Hassan wrote:
> Hi Hassan here !
>
> On the admin account I can see the Administration Workspace but now I want
> to move this Administration Workspace > specific tabs to the other users
> that are maintain type
>
> I tries to map it's registeration number to other users
>
>
> *INSERT INTO SAKAI_SITE_PAGE VALUES('!user-1900', '!user', 'Academic Term
> Manager', '0', 22, '0' );INSERT INTO SAKAI_SITE_TOOL VALUES('!user-1910',
> '!user-1900', '!user', 'sakai.acadtermmanage', 1, 'Academic Term Manager',
> NULL );*
Reply all
Reply to author
Forward
0 new messages