GroupAddUser
The GroupAddUser method adds an existing user to an existing group.
Syntax
GroupAddUser(groupName, userName)
Parameters
-
groupName
-
Specifies the (existing) group in which to place the user.
-
userName
-
Specifies the (existing) user to be added.
Return Values
Returns 0 if the user is added to the group, 1 if the user or group does not exist, 2=failed
Example
The following example modifies the user PeterXX.
<%
usingAuthentiXStandard = true
if (usingAuthentiXStandard) then
Set AuthX = Server.CreateObject("AUTHXOCX.AuthXOCXCtrl.1")
else
Set AuthX = Server.CreateObject("AUTHXISP.AuthXOCXCtrl.1")
protectedDomain = Request.ServerVariables("LOCAL_ADDR")
'protectedDomain = "hostheader.com"
AuthX.SetVirtualDomain protectedDomain, Request.ServerVariables("SCRIPT_NAME")
AuthX.SetVirtualDomainPassword("")
end if
%>
<%
result = AuthX.GroupAddUser("Premier Group", "Brian")
%>
<% If result = 0 Then %>
Successfully added to group
<% Else %>
Could not add Brian to "Premier Group"
<% End If %>
Result of GroupAddUser is:
<%= result %>
Applies To
AuthentiX OCX Component
http://www.flicks.com/authentix/discover/main.htm