<HTML>
<BODY>
<%
' Add an existing user to an existing global group,
' and set this user's Primary Group property to this group.
Set AU = Server.CreateObject("Persits.AspUser")
AU.LogonUser "MYDOMAIN", "Administrator", "xxxxx"
Set User = AU.Users("peter")
Set Group = AU.Groups("some group")
User.AddToGroup Group, True
User.PrimaryGroupID = Group.RID ' group's Relative ID
User.SetInfo
%>
</BODY>
</HTML>