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

Updates the task permission(s) for the given user or group. 

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

~/Workarea/webservices/WebServiceAPI/Site.asmx
C#
[SoapHeader("AuthHeader")]
[SoapHeader("RequestInfoHeader")]
[WebMethod(MessageName = "SetTaskPermission", Description = "")]
public void SetTaskPermission(long Id, int UserType, int PermissionType);
Visual Basic
<SoapHeader("AuthHeader")>
<SoapHeader("RequestInfoHeader")>
<WebMethod(MessageName = "SetTaskPermission", Description = "")>
Public Function SetTaskPermission(Id As long, UserType As Integer, PermissionType As Integer) As void
Parameters 
Description 
Id 
User ID or Group ID 
UserType 
User (1) or Group (2) 
PermissionType 
Ektron.Cms.Common.TaskPermission (1 = Create Task, 2 = Redirect Task, 3 = Delete Task, 4 = Edit Alias) 

To use this function, the user should be logged in to the system. Otherwise, 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!