基本原理:调用SharePoint提供的WebService方法:GetRoleCollectionFromUser。
输出的XML片段:
<
xml
><
GetRoleCollectionFromUser
xmlns
="http://schemas.microsoft.com/sharepoint/soap/directory/"
>
< Roles >
< Role ID ="1073741829" Name ="Full Control" Description ="Has full control." Order ="0" Hidden ="False" Type ="Administrator" BasePermissions ="FullMask" />
</ Roles ></ GetRoleCollectionFromUser ></ xml >
< Roles >
< Role ID ="1073741829" Name ="Full Control" Description ="Has full control." Order ="0" Hidden ="False" Type ="Administrator" BasePermissions ="FullMask" />
</ Roles ></ GetRoleCollectionFromUser ></ xml >
使用的XSLT
输出结果:
Full Control;