English (English) - Change language

GetProjectsForUser

What it does

Gets information about the projects on the Application Server, taking into account a user's access permissions.

Definition

Project [] GetProjectsForUser( int userId, int roleType );
    

Parameters

Name Type Description
userId int User ID
roleType int The ID of the user's role type. See RoleType for possible values.

Returned value

Type Description
Project[]

A set of records, each of which contains information about one of the projects. The set is created based on the values of the input parameters as follows:

  • userId<>0, roleType<>0 the projects where this user has access permissions to at least one of the batch types for the specified role
  • userId<>0, roleType=0 the projects where this user has some access permissions to at least one of the batch types
  • userId=0, roleType=0 the list of all projects
  • userId=0, roleType<>0 empty list

15.09.2020 9:42:43


Please leave your feedback about this article