如何通过Lotus Scripts 得到ACL 中所有角色的列表----急

傻乐tao 2002-01-08 09:15:50
...全文
110 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
dene 2002-01-08
  • 打赏
  • 举报
回复
This script displays all the roles that are enabled for Bob Kidder. For example, the script might display "[Project Leader]" and "[Writer]."
Dim session As New NotesSession
Dim db As NotesDatabase
Dim acl As NotesACL
Dim entry As NotesACLEntry
Set db = session.CurrentDatabase
Set acl = db.ACL
Set entry = acl.GetEntry( "Bob Kidder" )
Forall r In entry.Roles
Messagebox( r )
End Forall
傻乐tao 2002-01-08
  • 打赏
  • 举报
回复
楼上那样我试了,好像不行,我的意思是这样
比如说我(MyUser)现在建立了三个角色( A B C )
那么现在我怎么样在程序中能够知道我(MyUser) 就有三个角色是(A B C)
yw_w 2002-01-08
  • 打赏
  • 举报
回复
Dim acl As NotesACL

Set acl = db.ACL

Forall r In acl.Roles
Call uidoc.FieldAppendText( "role", r & ", " )
End Forall
97ce_twinkle 2002-01-08
  • 打赏
  • 举报
回复
notesACL.roles可获得数组。

536

社区成员

发帖
与我相关
我的任务
社区描述
企业开发 Exchange Server
社区管理员
  • 消息协作社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧