Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

背景

原生的Confluence没有对页面直接进行查看和编辑的限制授权

接口

接口地址方法参数说明
/rest/gearsapi/1.0/permission/page/addPOST

{
    "pageId"65552,
    "usernameListView": ["admin","user01"],
    "usernameListEdit": ["admin","user01"],
    "groupListView": ["group1""group2"],
    "groupListEdidt": ["group1""group2"]
}

增加指定用户及用户组的查看或者编辑权限
/rest/gearsapi/1.0/permission/page/removePOST

{
    "pageId"65552,
    "usernameListView": ["admin","user01"],
    "usernameListEdit": ["admin","user01"],
    "groupListView": ["group1""group2"],
    "groupListEdidt": ["group1""group2"]
}

删除指定用户及用户组的查看或者编辑权限
/rest/gearsapi/1.0/permission/page/nonePOST{
    "pageId"65552
}
设定页面不设定权限

参数说明

参数说明
 pageId数值需要授权的页面ID
usernameListView用户账户对列["admin","user01"],具有查看权限;可以为空
usernameListEdit用户组名称对列["group1","group2"],具有编辑权限;可以为空
groupListView用户账户对列["admin","user01"],具有查看权限;可以为空
groupListEdidt用户组名称对列["group1","group2"],具有编辑权限;可以为空

返回值

{
    "result"false,
    "message""无空间权限设置权限",
    "cannext"true,
    "success"false
}

说明

操作此接口调用 的接口,需要拥有当前页面所在空间的权限管理权限



  • No labels