GBS SMART User Creation

Overview

This manual details the procedure for creating GBS SMART users.

  • Every user must have an LDAP account to log in.

  • All GBS Smart configurations and data are inside the schema SMART.

  • The table User contains basic information about the user.

  • The table UserPermission relates users to their permissions through the fields UserId and PermissionId (see List of Available Permissions).

  • The table UserStation relates users to stations through the fields UserId and StationId.

Procedure

Create a new workstation in the table Station

To create a new workstation, or station, insert a record into the table SMART.Station filling the following columns:

  • StationId: Fill with an incremental ID for the station.

  • Description: Fill with the station name.

  • MandatoryConference: Indicate whether the station's transactions should go to mandatory conference (1 for yes, 0 for no).

  • CityId: Indicate the ID of the city where the station is located.

circle-info

The station ID (StationId) will be used in the next steps.

Create a new user in the table User

To create a new user, insert a record into the table SMART.User filling the following columns:

  • CPF: Fill with the user's CPF.

  • Username: Fill with the username.

  • Admin: Indicate whether the user is an administrator (1 for yes, 0 for no).

  • Active: Indicate whether the user is active (1 for active, 0 for inactive). The default value is 1.

  • Pguid (optional): Fill with the user's PGUID in the biometric database.

circle-info

The column UserId is auto-increment. The user ID will be used in the next steps.

Assign permissions to the user in the table UserPermission

After creating the user, you must assign their permissions. To do this, insert a record into the table SMART.UserPermission for each permission the user should have, relating the UserId with the PermissionId.

List of available permissions

The PermissionId is specified in the following table:

PermissionId
Description
PermissionName

1

Permission to list civil registration, 2nd copy, etc.

CIVIL

2

Permission to list criminal records.

CRIMINAL

3

Permission to view the layout screen.

LAYOUT

4

Permission to view the advanced search screen.

SEARCH

5

Permission to perform biometric capture.

CAPTURE

6

Permission to download biometrics, print protocol and record.

DOWNLOAD

7

Permission to perform biographical verification.

CONFERENCE

8

Permission to perform package check-in.

PACKAGE

Associate the user to a station in the table UserStation

Insert a record into the table UserStation relating the UserId with the StationId. The station must be previously configured in the table SMART.Station, as explained above.

  • UserId: Use the UserId of the user, as shown in the table SMART.User.

  • StationId: Fill with the ID of the station to which the user will be associated, as shown in the table SMART.Station.

Procedure for creating User, assigning station and permissions

Example call of the procedure

Arguments:

  • CPF (numbers only)

  • Username (same as LDAP)

  • Admin (0: false, 1: true)

  • Active (0: false, 1: true)

  • PGUID of GBDS (search CPF in GBDS)

  • Station ID

  • Permissions separated by comma

Call the stored procedure to insert a new user:

The example above creates a new user with CPF 123.456.789-00, username new_user, not an administrator, active, without PGUID, associated to the station with ID 1 and with the permissions 1,4,5,6,7.

Last updated

Was this helpful?