Define role mapping with an External database
You need to perform the procedure below to use a custom database query for the role with an Active Directory authentication: Set the authentication type to External database.
- In Admin Console, navigate to .
-
Select
Windows and
External database. This
property is required to configure user roles from a custom query to an external
database.
Now you can configure user roles from a custom query to determine the role.
- In Admin Console, navigate to New user role. , right-click and select
- Assign a unique, descriptive name to the role and click OK.
-
Open the
External DB mapping tab
and in the
Source field, select the database.
Documents Tree, navigate to Connections, right-click and select New Connection.If you do not have an existing database configured, on the
-
Use the input field below
Source to enter the
custom SQL query.
Parameter name must be specified between < > and if it is a string, single quotes around it must be used. For example, '<Identity>' where "Identity" is used in Windows Active Directory, because this parameter will contain user's domain/user name.
For example, your custom SQL query may look like:
Select '*' from Roles_Mapping where Staff_ID='<Identity>'