Create Database User (Data Management)

ArcGIS Pro 3.3 | | Help archive

Summary

Creates a database user with privileges sufficient to create data in the database.

Usage

  • This tool can be used with Oracle, Microsoft SQL Server, or PostgreSQL. This tool is not supported with cloud-based database services.

  • For Oracle and SQL Server, if an operating system login exists, this tool can add that login as a user to the specified database, but the login name and username must be the same.

  • You cannot create a database user for a Microsoft Windows group.

  • This tool creates log file tables for the user when run on a geodatabase in Oracle.

  • If the login does not exist in the SQL Server instance or PostgreSQL database cluster, this tool adds the login, creates a user in the database provided as the Input Database Connection parameter value, and creates a schema for the user in the database. The database provided is set as the user's default database in SQL Server.

  • If the login exists in the SQL Server instance, this tool adds the user to the database provided as the Input Database Connection parameter value and creates a matching schema. The user's default database is not changed in SQL Server.

  • If the login exists in the PostgreSQL database cluster, this tool creates a matching schema in the database provided as the Input Database Connection parameter value.

  • You cannot create a user named sde with this tool. The sde user is the geodatabase administrator user and requires more privileges than this tool grants.

  • You cannot use delimiters, such as double quotation marks, when specifying a username. The username can only contain characters supported by the underlying database management system when provided without delimiters.

  • Users created in the database have the following privileges granted to them:

    DBMSPrivileges

    Oracle

    CREATE PROCEDURE

    CREATE SESSION

    CREATE SEQUENCE

    CREATE TABLE

    CREATE TRIGGER

    CREATE VIEW

    SELECT ON DBA_ROLES

    PostgreSQL

    CONNECT

    TEMPORARY

    USAGE on the sde schema if the user is created in a geodatabase or a database that has the ST_Geometry type installed

    SELECT, INSERT, UPDATE, and DELETE on the geometry_columns and geography_columns views and SELECT on the spatial_ref_sys view if PostGIS is installed in the database

    SQL Server

    CREATE TABLE

    CREATE PROCEDURE

    CREATE VIEW

Parameters

LabelExplanationData Type
Input Database Connection

The connection file to an Oracle, PostgreSQL, or SQL Server database or an enterprise geodatabase in those databases. Ensure that the connection is made as a user with privileges to create users in the database. When connecting to Oracle, you must connect as the sys user.

Workspace
Create Operating System Authenticated User
(Optional)

Specifies the authentication type for the user. Use this parameter only if an operating system login exists for which you want to create a database user. This parameter is only supported for SQL Server and Oracle databases.

  • Checked—An operating system-authenticated user will be created. The corresponding login must already exist.
  • Unchecked—A database-authenticated user will be created. This is the default.
Boolean
Database User

The name of the new database user.

If you create a database user for an operating system login, the username must be the same as the login name.

String
Database User Password
(Optional)

The password for the new user. The password policy of the underlying database is enforced.

If you create a database user for an operating system login, no input is required.

Encrypted String
Role
(Optional)

The name of the existing database role to which the new user will be added.

String
Tablespace Name
(Optional)

The name of the tablespace that will be used as the default tablespace for the new user in an Oracle database. You can specify a preconfigured tablespace, or, if the tablespace does not exist, it will be created in the Oracle default storage location with its size set to 400 MB. If no tablespace is provided, the user's default tablespace will be set to the Oracle default tablespace.

String

Derived Output

LabelExplanationData Type
Database User Created

Whether the tool completed successfully.

Boolean

Environments

Licensing information

  • Basic: No
  • Standard: Yes
  • Advanced: Yes

Related topics