GroupDeleteUser
The GroupDeleteUser method deletes a user from a group.
Syntax
GroupDeleteUser(groupName, userName)
Parameters
-
groupName
-
Specifies the group.
-
userName
-
Specifies the user to be deleted.
Return Values
Returns 0 if the user is deleted , 1 if the user is not , 2=group does not exist
Example
The following example deletes Brian from Premier Group.
<%
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.GroupDeleteUser("Premier Group", "Brian")
%>
<% If result = 0 Then %>
Got him!
<% Else %>
Failed
<% End If %>
<P>
Result of GroupDeleteUser is:
<%= result %>
Applies To
AuthentiX OCX Component
http://www.flicks.com/authentix/discover/main.htm