ProjectSecurityTableClean Method

Description

Cleans the project security table of Microsoft Office Project Server 2003. The PDS removes entries in the project security table that match the specified project ID and/or the SQL process ID, and that have a timestamp older than the specified age.

Syntax

<Request>
   <ProjectSecurityTableClean>
      <Age></Age>
      <ProjectID></ProjectID>
      <SPID></SPID>
   </ProjectSecurityTableClean>
</Request>

Parameters

Age

Optional. The age, in hours, of the security table entries to be cleaned. Age defaults to 24 hours, if not given; Age cannot be less than 4 hours, nor more than 32767 hours.

ProjectID

Optional. The project ID.

SPID

Optional. The SQL Process ID.

Return Value

If the cleanup is successful, the PDS returns a successful HRESULT and STATUS.

<Reply>
   <HRESULT></HRESULT>
   <STATUS></STATUS>
   <UserName></UserName>
</Reply>

Remarks

The PDS checks Project Server security for the currently logged-on user, determines whether that user is a valid Project Server user, and checks whether that user has sufficient administrative permissions to edit the project security table.

The PDS compares the security entry age with the SEC_SPIDTIMESTAMP field of the project security table.