RtBaseline_IsUserAllowed
The RtBaseline_IsUserAllowed method/function checks the security of the given user for the given AFElement path (this method was originally inherited from the PI-ModuleDB, but is now included in AF 2.9.5 with PI System 2017 or higher).
Web Method Synopsis (C# Syntax)
public int RtBaseline\_IsUserAllowed(
string sMDBPath,
string dUserName);
Output Result
INT ® Returns the level of the user over the given element like the following codes:
0 ® NO ACCESS
1 ® READ-ONLY ACCESS
2 ® READ-WRITE ACCESS
3 ® FULL ACCESS (RW + capable to edit security)
Input Parameters
sMDBPath (STRING) ® The Element path that must exist in the following format: \\Server\Database\\<root>\\<elem>\\<sub-elem>.... The path can be recursive without any kind of limitations, though you cannot specify just the name.
sUserName (STRING) ® The UserName, in the format \<DOMAIN>\\<USER>, has to be specified.