> 用户组对象

以下对象与 usergroup 直接相关。

> User group object

The following objects are directly related to the usergroup API.

用户组

用户组对象具有以下属性。

属性类型说明
usrgrpidstring(readonly) 用户组的ID。
name
(required)
string用户组的名称。
debug_modeinteger是否启用或禁用调试模式。

可能的值:
0 - (default) 禁用;
1 - 启用。
gui_accessinteger组中用户的前端身份验证方法。

可能的值:
0 - (default) 使用系统默认身份验证方法;
1 - 使用内部认证;
2 - 禁止访问前端。
users_statusinteger用户组是启用还是禁用。

可能的值:
0 - (default) 启用;
1 - 禁用。

User group

The user group object has the following properties.

PropertyTypeDescription
usrgrpidstring(readonly) ID of the user group.
name
(required)
stringName of the user group.
debug_modeintegerWhether debug mode is enabled or disabled.

Possible values are:
0 - (default) disabled;
1 - enabled.
gui_accessintegerFrontend authentication method of the users in the group.

Possible values:
0 - (default) use the system default authentication method;
1 - use internal authentication;
2 - disable access to the frontend.
users_statusintegerWhether the user group is enabled or disabled.

Possible values are:
0 - (default) enabled;
1 - disabled.

权限

权限对象具有以下属性。

属性类型说明
id
(required)
string要添加权限的主机组的ID。
permission
(required)
integer访问到主机组的级别。 \可能的值:
0 - 拒绝访问;
2 - 只读访问;
3 -读写访问。

Permission

The permission object has the following properties.

PropertyTypeDescription
id
(required)
stringID of the host group to add permission to.
permission
(required)
integerAccess level to the host group.

Possible values:
0 - access denied;
2 - read-only access;
3 - read-write access.

基于标签的权限

基于标签的权限对象具有以下属性。

属性类型说明
groupid
(required)
string要添加权限的主机组的ID。
tagstring标签名。
valuestring标签值。

Tag based permission

The tag based permission object has the following properties.

PropertyTypeDescription
groupid
(required)
stringID of the host group to add permission to.
tagstringTag name.
valuestringTag value.