BuildMaster SDK Reference
Version:

ValidatePrivileges(Inedo.BuildMaster.Extensibility.UserDirectories.IUserDirectoryUser user, SecuredTask task, int? applicationGroupId, int? applicationId, int? environmentId, int? serverId) Method

Verifies that the specified user can perform the specified task.

Syntax

public void ValidatePrivileges(Inedo.BuildMaster.Extensibility.UserDirectories.IUserDirectoryUser user, SecuredTask task, int? applicationGroupId, int? applicationId, int? environmentId, int? serverId)

Parameters

user
Type: Inedo.BuildMaster.Extensibility.UserDirectories.IUserDirectoryUser

The user to evaluate privileges for.

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.

System.ArgumentNullException

user is null (Nothing in Visual Basic).