目录 搜索 前言 关于脚本文件 Root objects Scripting API ScriptNode API getPropertyNames getTypePropertyNames childByNamePath childrenByXPath childFileFolders isScriptContent hasAspect getChildAssocsByType isSubType exists reset toJSON Security/Permissions API Ownership API Modifying and creating API Check in/check out API Versions API Content API ScriptContentData API Transformation API Thumbnail API Tagging API Actions API Classification API Logging API People API addAuthority changePassword createGroup createPerson deleteGroup deletePerson disableAccount enableAccount getCapabilities getContainerGroups getExcludeTenantFilter getGroup getImmutableProperties getMembers getPeople getPeoplePaging getPeopleEvaluationMode getPerson getPersonFullName isAccountEnabled isAdmin isGuest removeAuthority setPassword setQuota setStoreUrl ScriptAction API Search API Session API SessionTicket API Utility methods Services API 暂无相关搜索结果! 凌云文档 enableAccount 启用已停用的帐户。此方法只能使用管理员权限调用。 enableAccount(userName)参数 userName一个字符串,表示要启用其帐户的用户名。 代码例 以下代码段切换用户帐户状态: if (people.isAccountEnabled("Joe")) { people.disableAccount("Joe"); } else { people.enableAccount("Joe"); }文档更新时间: 2019-07-06 23:28 作者:凌云文档
启用已停用的帐户。此方法只能使用管理员权限调用。 enableAccount(userName)参数 userName一个字符串,表示要启用其帐户的用户名。 代码例 以下代码段切换用户帐户状态: if (people.isAccountEnabled("Joe")) { people.disableAccount("Joe"); } else { people.enableAccount("Joe"); }文档更新时间: 2019-07-06 23:28 作者:凌云文档