BuildMaster SDK Reference
Version:

ValidatePrivileges(SecuredTask task, int? applicationGroupId, int? applicationId, int? environmentId, int? serverId) Method

Verifies that the current user can perform the specified task.

Syntax

public void ValidatePrivileges(SecuredTask task, int? applicationGroupId, int? applicationId, int? environmentId, int? serverId)

Parameters

task
Type: SecuredTask

The task to test.

applicationGroupId
Type: int?

The current application group ID in scope.

applicationId
Type: int?

The current application ID in scope.

environmentId
Type: int?

The current environment ID in scope.

serverId
Type: int?

The current server ID in scope.

Exceptions

SecuredTaskDeniedException

The user cannot perform the specified task.