.. _sys_grant_privileges(KES):

sys_grant_privileges
~~~~~~~~~~~~~~~~~~~~~~~~

视图 ``sys_grant_privileges`` 提供用户或者角色所授予和被授予的权限信息。


.. table:: sys_grant_privileges列
      :class: longtable

      +--------------------+----------+------------------------------+
      | 名称               | 数据类型 | 描述                         |
      +====================+==========+==============================+
      | ``grantor``        | ``name`` | 授予该权限的用户名或角色名   |
      +--------------------+----------+------------------------------+
      | ``grantortype``    | ``text`` | 授予者类型(用户或者角色)     |
      +--------------------+----------+------------------------------+
      | ``grantee``        | ``name`` | 被授予该权限的用户名或角色名 |
      +--------------------+----------+------------------------------+
      | ``granteetype``    | ``text`` | 被授予者类型(用户或者角色)   |
      +--------------------+----------+------------------------------+
      | ``object_name``    | ``name`` | 权限相关的对象名称           |
      +--------------------+----------+------------------------------+
      | ``object_type``    | ``text`` | 权限相关的对象类型           |
      +--------------------+----------+------------------------------+
      | ``object_schema``  | ``name`` | 权限相关的对象所属的模式     |
      +--------------------+----------+------------------------------+
      | ``privilege_type`` | ``text`` | 权限类型                     |
      +--------------------+----------+------------------------------+
      | ``is_grantable``   | ``text`` | 该特权是否为可授予的         |
      +--------------------+----------+------------------------------+
