Retrieves the user name associated with the current object's immediate (out-of-process) creator.
Applies To
Syntax
username = securityproperty.GetDirectCreatorName( )
Part
username
The user name associated with the process that directly created the current object.
securityproperty
An object variable that evaluates to a SecurityProperty object.
Remarks
You use the GetDirectCreatorName method to determine the user name associated with the process that created the current object. The following scenarios illustrate the functionality of the GetDirectCreatorName method.
A base process running on server A, as user A, creates object X on server B, running as user B. Then object X creates object Y, running on server C. If object Y calls GetDirectCreatorName, the name of user B is returned.
Security can only be enforced across process boundaries. This means that if an object creates another object within the same process, when the second object calls GetDirectCreatorName, it will get the name of the most immediate creator outside its own process boundary, not the user name associated with the object that actually created it.
A base client running on server A, as user A, creates object X on server B, running as user B. Then object X creates object Y, running in the same process as object X, also on server B. When object Y calls GetDirectCreatorName, the name of user A is returned, not the name of user B.
See Also
Programmatic Security, Advanced Security Methods, ObjectContext Object