CheckSPGlobalPermission Method
Description
Checks if a resource has the specified global permission using the Microsoft Office Project Server 2003 security object.
Syntax
Function CheckSPGlobalPermission( _
ByVal sp_guid As String, _
ByVal lSecGroupID As Long _
) As Long
Parameters
Parameter | Description |
---|---|
user_guid |
Required String. The resource GUID as in MSP_WEB_RESOURCES.WRES_GUID. |
lSecGroupID |
Required Long. The global permission ID to check. |
Return Value
The CheckSPGlobalPermission method returns True (1) or False (0) as a Long (4-byte integer) value.
Example
The following example is for Microsoft Visual Basic 6.0; it checks if the resource with the specified GUID has a global permission 101.
Dim lResult as Long
Set oSec = CreateObject("PjSvrSecurity.PjSvrSecurity")
oSec.SetDBConnection "ProjectServer"
lResult = oSec.CheckSPGlobalPermission("{82F50D90-F5F0-4B5D-8384-839B98823D2F}", 101)
Set oSec = Nothing