User Authorization Model
New in version 2.5.
The MongoDB Connector for BI restricts which database administration, data definition, and data manipulation statements authenticated users can run. The following table maps a SQL statement and corresponding MySQL privilege to the required MongoDB privilege action:
MySQL Statement | MySQL Privilege | MongoDB Privilege |
---|---|---|
Only available to the BI Connector's admin user specified by the
--mongo-username option or
the mongodb.net.auth.username setting. | ||
FLUSH SAMPLE | Not in MySQL | Depends on your sampling configuration: Standalone Reader: Clustered Reader: The statement is not permitted in this mode. Clustered Writer:
|
| ||
Depends on your sampling configuration: Standalone Reader:
Clustered Reader: Not permitted in this mode. Clustered Writer:
| ||
SUPER privilege is required to set global variables. Setting a session variable generally does not require any privilege, although there are exceptions that require the SUPER privilege (such as sql_log_bin). | Either the BI Connector's admin user, as specified by the
No privilege required to set session variables. | |
No privilege required. | No privilege required. | |
No privilege required. | No privilege required. | |
Displays column information for each column where the user
has some privilege. Column information is not
displayed for columns where the user does not have some
privilege. | find on the proper collections. | |
No privilege required. | find on the proper database. | |
Some privilege for the table. | find on the proper database or collection. | |
SHOW DATABASES privilege. | find on the proper database or collection. | |
This statement requires some privilege for any column in the table. | find on the proper collection. | |
PROCESS privilege to view all processes. No privilege required to view your own processes. |
No privilege required to view your own processes. | |
No privilege required. | No privilege required. | |
Lists non-temporary tables in a given database where the user has some privilege. If you do not have any privilege for a base table or view, it does not show up in the output from SHOW TABLES . |
| |
No privilege required. | No privilege required. |