BuildMaster SDK Reference
Version:

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

Returns the ID of the evaluated privilege for the specified user and task.

Syntax

public int FindPrivilege(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

A positive number indicates that the privilege was explicitly granted; a negative number indicates that the privilege was explicitly denied; zero indicates no privileges.

Exceptions

System.ArgumentNullException

user is null (Nothing in Visual Basic).