Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

HOW TO Add additional admin accounts with $nuConfigDBGlobeadminUsers

Questions related to installing, updating, setting up and configuring
Post Reply
nubuilderml
Posts: 7
Joined: Mon Jan 31, 2022 9:32 pm
nuBuilder Version: 4.5

HOW TO Add additional admin accounts with $nuConfigDBGlobeadminUsers

Unread post 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?
kev1n
nuBuilder Team
Posts: 3801
Joined: Sun Oct 14, 2018 6:43 pm
nuBuilder Version: 4.5
Has thanked: 2 times
Been thanked: 9 times
Contact:

Re: HOW TO Add additional admin accounts with $nuConfigDBGlobeadminUsers

Unread post 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.
Attachments
Polish_20220202_055853489.jpg
Polish_20220202_055853489.jpg (32.79 KiB) Viewed 3779 times
nubuilderml
Posts: 7
Joined: Mon Jan 31, 2022 9:32 pm
nuBuilder Version: 4.5

Re: HOW TO Add additional admin accounts with $nuConfigDBGlobeadminUsers

Unread post 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.
nubuilderml
Posts: 7
Joined: Mon Jan 31, 2022 9:32 pm
nuBuilder Version: 4.5

Re: HOW TO Add additional admin accounts with $nuConfigDBGlobeadminUsers

Unread post 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
kev1n
nuBuilder Team
Posts: 3801
Joined: Sun Oct 14, 2018 6:43 pm
nuBuilder Version: 4.5
Has thanked: 2 times
Been thanked: 9 times
Contact:

Re: HOW TO Add additional admin accounts with $nuConfigDBGlobeadminUsers

Unread post 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
camti
Posts: 12
Joined: Thu May 11, 2023 12:36 pm
nuBuilder Version: 4.5
Has thanked: 1 time

Re: HOW TO Add additional admin accounts with $nuConfigDBGlobeadminUsers

Unread post by camti »

Shortcut for -> Form Info seems to have changed to (CTRL-SHIFT-M)
Post Reply