getUserAccessByCluster
Syntax
getUserAccessByCluster(users, cluster, finalAccess)
Arguments
users is a STRING vector indicating the usernames.
cluster is a STRING scalar indicating the name of the cluster where the users reside.
finalAccess is a BOOLEAN scalar indicating whether to return the privileges that ultimately take effect, i.e., the privileges for both the user and the groups the user belongs to are taken into account.
Details
Get the privileges for specified users in a multi-cluster environment. This function can only be executed by an administrator on the MoM (Master of Masters) cluster.
Return value: A table. See function getUserAccess for details.
Examples
getUserAccessByCluster(["admin"], "masterOfMaster", true)
userId | groups | isAdmin | ACCESS_READ | ACCESS_INSERT | ACCESS_UPDATE | ACCESS_DELETE | VIEW_EXEC | SCRIPT_EXEC | TEST_EXEC | DBOBJ_CREATE | ... |
---|---|---|---|---|---|---|---|---|---|---|---|
admin | 1 | allow | allow | allow | allow | allow | allow | allow | allow | ... |
Releated Function: getUserAccess