Access Portal PostgreSQL

2466
4
Jump to solution
09-17-2023 11:24 PM
MuhammadNaufalIhsan
Occasional Contributor

Hi guys,

Does anyone know how to access the portal PostgreSQL? In datastore, I can use the listadminusers utility tools to get the username and password to access the database. However, I cannot find the same tools in the portal.

Regards,

Naufal

0 Kudos
1 Solution

Accepted Solutions
JakeSkinner
Esri Esteemed Contributor

@MuhammadNaufalIhsan ,

Note:  Exercise extreme caution when connecting to Portal's PostgreSQL database

1.  Open command prompt

2.  Change the directory to portal's PostgreSQL bin directory.  Ex:

c:\arcgisportal\pgsql_14.5\bin

3.  Connect using the initial Portal Administrator username/password when portal was installed:

JakeSkinner_0-1695041704184.png

If you do not know the username/password, this can be updated through Portal Administrator Directory > System > Database:

JakeSkinner_1-1695041795545.png

 

View solution in original post

4 Replies
MiguelParedes
Esri Contributor

Greetings @MuhammadNaufalIhsan 

Navigate to <drive>:\Program Files\ArcGIS\Portal\tools\createportal and use the command "listadministratorusertypes"

Usage: listadministratorusertypes -lf <arg>
<arg> is the path to the portal license file. The tool will list the user types compatible with the Administrator role that are in this license file.

Hope that helps.

Miguel
MuhammadNaufalIhsan
Occasional Contributor

Hi Miguel,

Thanks for the answer! We haven't tried this solution yet since the other solution worked. But again, thanks for answering!

Regards,

Naufal

0 Kudos
JakeSkinner
Esri Esteemed Contributor

@MuhammadNaufalIhsan ,

Note:  Exercise extreme caution when connecting to Portal's PostgreSQL database

1.  Open command prompt

2.  Change the directory to portal's PostgreSQL bin directory.  Ex:

c:\arcgisportal\pgsql_14.5\bin

3.  Connect using the initial Portal Administrator username/password when portal was installed:

JakeSkinner_0-1695041704184.png

If you do not know the username/password, this can be updated through Portal Administrator Directory > System > Database:

JakeSkinner_1-1695041795545.png

 

MuhammadNaufalIhsan
Occasional Contributor

Hi Jake,

Thanks for the answer! We've tried this and it worked!

 

Regards,
Naufal

0 Kudos