You are here: Ektron Namespace > Web Services API > Ektron.Services Namespace > Classes > Site Class > Site Methods > GetTaskPermission
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
Site.GetTaskPermission Method

Use this method to find out whether a user has task permissions. 

This method can be accessed through the Site.asmx file located in:

~/Workarea/webservices/WebServiceAPI/Site.asmx
C#
[SoapHeader("AuthHeader")]
[SoapHeader("RequestInfoHeader")]
[WebMethod(MessageName = "GetTaskPermission", Description = "")]
public long GetTaskPermission(long Id, int Type);
Visual Basic
<SoapHeader("AuthHeader")>
<SoapHeader("RequestInfoHeader")>
<WebMethod(MessageName = "GetTaskPermission", Description = "")>
Public Function GetTaskPermission(Id As long, Type As Integer) As long
Parameters 
Description 
Id 
User or group ID. 
Type 
User or group (1 = user, 2 = group). 

Returns 1 if the user has one of the task permissions, otherwise 0.

The user should be logged in to the system. Otherwise, the user will get the permission denied error.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!