Page 1 of 1

HOW TO Add additional admin accounts with $nuConfigDBGlobeadminUsers

Posted: Tue Feb 01, 2022 11:04 pm
by nubuilderml
On a new install of nuBuilder v4.5 on Ubuntu 20.04 XAMPP 8.1.2. Never used nuBuilder before.

I saw this parameter in nuconfig.php

$nuConfigDBGlobeadminUsers="";

I added a couple user names
$nuConfigDBGlobeadminUsers="user1,user2";

Made a one item Access Level Entry with all check boxes selected with help from YouTube video.

Added a couple users pointing to the one Access Entry with help from YouTube video.

Restarted Apache in XAMPP. Cleared the cookies in the browser. Restarted the browser. Reloaded the nuBuilder access page. Logged in as user1. Have no administrative access.

Any ideas?

Re: HOW TO Add additional admin accounts with $nuConfigDBGlobeadminUsers

Posted: Wed Feb 02, 2022 5:56 am
by kev1n
Hi,

You need to provide user iDs, aka record ids (primary keys)
This can be retrieved by pressing CTRL+SHIFT+I in the user form.

Re: HOW TO Add additional admin accounts with $nuConfigDBGlobeadminUsers

Posted: Sun Feb 06, 2022 8:44 pm
by nubuilderml
Thanks, Hope to try your solution after I get nubuilder working on a alternative configuration, ie.

Caddy Server / PHP-fpm / MariaDB nuBuilder
New post viewtopic.php?t=11484

I had to trade Apache in for Caddy to get a reverse proxy working.

Re: HOW TO Add additional admin accounts with $nuConfigDBGlobeadminUsers

Posted: Mon Feb 07, 2022 4:40 pm
by nubuilderml
nuBuilder is running on Caddy / PHP-fpm .

I got a look at the user form (list of users) and do not see any field named "Record ID" Drilled down to the individual user to add and didnt see Record ID. Pressed Ctrl Shift in individual user form and nothing happened.

Looked in the zzzsys_user table in the nubuilder4 database and see columns zzzsys_user-id and sus_zzzzsys_access_id Each entry is 15 characters long, The Record ID shown in your post is also 15 characters long. Do either of these columns correspond to the Record ID ?

In nuconfig.php I entered in the zzzsys_user-id > No globeadmin level access
In nuconfig.php I entered in the sus_zzzzsys_access_id > No globeadmin level access

$nuConfigDBGlobeadminUsers= "6200545677618f1,620enk33e7618f1"; //-- User Ids with "globeadmin" permission, separated by comma

Re: HOW TO Add additional admin accounts with $nuConfigDBGlobeadminUsers

Posted: Mon Feb 07, 2022 4:48 pm
by kev1n
Option Menu -> Form Info (CTRL+SHIFT+I) while in edit mode of a user record.

It is zzzzsys_user_id

Important Note: You must restart your browser after modifying nuconfig.php in order for changes to be reflected

Re: HOW TO Add additional admin accounts with $nuConfigDBGlobeadminUsers

Posted: Thu Jul 13, 2023 12:02 am
by camti
Shortcut for -> Form Info seems to have changed to (CTRL-SHIFT-M)