Developer forum

Forum » Development » Create an extranet user group programatically

Create an extranet user group programatically


Reply
Hi

I'm trying to create an extranet user group programatically using the UserManagement module.

I can create the group fine (I can see that the amount of groups is increased by one), but I can't see it in the Dynamicweb backend. I'm guessing that I need to set some property on the group in order to make it an extranet group.

Which property is that (if I'm correct in my assumption)?

And more generally: Where are user groups (both extranet and other) put in the database (i.e. what is the table name)?


Thanks,

Marianne


Replies

 
Nicolai Høeg Pedersen
Reply
Users and groups are found in AccessUser table.

Before saving the group assign a parentid - otherwise it might not show up in administration:

Dim g As New Group("My group")
g.ParentID = 3
g.Save()

 

You must be logged in to post in the forum