define variable domain as IDomain no-undo.
define variable user as IUser no-undo. domain = service:GetDomain("AcmeDomain"). assign user = service:NewUser("randersen") user:GivenName = "Robert" user:SurName = "Andersen". domain:Users:Add(user). assign user = service:NewUser("mandersen") user:GivenName = "Molly" user:SurName = "Andersen". domain:Users:Add(user). service:UpdateDomain(domain). |