Skip to main content

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

NameTypeDescription
userIdintUser ID
roleTypeintThe 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