DirOrganizationalUnit.fetchRoot(session)

Retrieves the root OU of the schema. The root OU of the schema is the root of the OUs tree, and is considered as the organization itself. Before creating any Organizational unit that belongs to the first layer, you have to fetch for the Root OU in order to pass it as an argument of the create method. For example: // Before creating an Organizational Unit, fetch the Parent Unit // If it has no parent, fetch the Root organizational unit rootOU = DirOrganizationalUnit.fetchRoot(session : mySession) bostonOU = create(rootOU, session : mySession, name : "Boston", description : "Boston Offices")

Arguments:

Name Type Description Mode
session Fuego.Fdi.DirectorySession an active session with the directory provider, cannot be null in