BuildMaster SDK Reference
Version:

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

Returns a value indicating whether the specified user is authorized for the specified task.

Syntax

public bool IsAuthorizedForTask(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.

Returns

True if the user can perform the specified task; otherwise false.

Exceptions

System.ArgumentNullException

user is null (Nothing in Visual Basic).