WEBGetRolesForUser
| Initial Build | 2008.01 |
| Deprecated Build | 2015.01 |
| xWeb | Web Method |
| Response Type | XML node |
Important! Sharepoint integration is no longer supported. This method is deprecated.
This method returns all the eWeb roles for a specified user. This is used with the Sharepoint Role Provider.
This view runs a baseline SP called ws_get_moss_roles_by_customer to get the user's roles. If you wish to use a different SP, then set the name of that SP in the WEBGetRolesForUserSP system option.
Sample Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.avectra.com/2005/">
<soapenv:Header>
<ns:AuthorizationToken>
<!--Optional:-->
<ns:Token>df3d1644-ba3e-4dc7-8399-ae06ee6063e5</ns:Token>
</ns:AuthorizationToken>
</soapenv:Header>
<soapenv:Body>
<ns:WEBGetRolesForUser>
<!--Optional:-->
<ns:username>82457</ns:username>
</ns:WEBGetRolesForUser>
</soapenv:Body>
</soapenv:Envelope>
Sample Response
Shortened for brevity.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<AuthorizationToken xmlns="http://www.avectra.com/2005/">
<Token>df3d1644-ba3e-4dc7-8399-ae06ee6063e5</Token>
</AuthorizationToken>
</soap:Header>
<soap:Body>
<WEBGetRolesForUserResponse xmlns="http://www.avectra.com/2005/">
<WEBGetRolesForUserResult>
<Results recordReturn="5">
<Result>
<rolename>Anniversary</rolename>
</Result>
<Result>
<rolename>OLB Anniversary</rolename>
</Result>
<Result>
<rolename>OLB Ind/Org</rolename>
</Result>
<Result>
<rolename>Regular</rolename>
</Result>
<Result>
<rolename>SD CommCD</rolename>
</Result>
</Results>
</WEBGetRolesForUserResult>
</WEBGetRolesForUserResponse>
</soap:Body>
</soap:Envelope>