Project.CanUserAccess Method

Does a user have _any_ access roles to this project, or a parent project?
Public Shared Function CanUserAccess( _ 
ByVal user_id As EntityID, _ 
ByVal project_id As EntityID, _ 
ByVal check_parents As Boolean, _ 
ByVal db As IDatabase _ 
) As Boolean
This language is not supported or no code example is available.
public static bool CanUserAccess( 
EntityID user_id, 
EntityID project_id, 
bool check_parents, 
IDatabase db 
)
This language is not supported or no code example is available.
public:  
static bool CanUserAccess( 
EntityID^ user_id, 
EntityID^ project_id, 
bool check_parents, 
IDatabase^ db 
)
This language is not supported or no code example is available.
public static function CanUserAccess( 
user_id : EntityID, 
project_id : EntityID, 
check_parents : boolean, 
db : IDatabase 
) : boolean;
This language is not supported or no code example is available.

Parameters

user_id
EntityID

the id of the user to check

project_id
EntityID

the Job id to check

check_parents
bool

should we check the parent projects?

db
IDatabase

a database connection

Return Value

bool

true if we have access

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1

In this article

Definition