# Class NovellMethods OptimaJet.Workflow.Plugins.ActiveDirectoryPlugin.Providers.NovellMethods Namespace: [OptimaJet.Workflow.Plugins.ActiveDirectoryPlugin.Providers](https://api.workflowengine.io/active-directory-plugin/OptimaJet.Workflow.Plugins.ActiveDirectoryPlugin.Providers/) ```csharp public class NovellMethods : IActiveDirectoryMethods ``` ## Type Hierarchy - NovellMethods Current type - Implemented interfaces - [IActiveDirectoryMethods](https://api.workflowengine.io/active-directory-plugin/OptimaJet.Workflow.Plugins.ActiveDirectoryPlugin.Providers/IActiveDirectoryMethods/) ## Constructors `public NovellMethods(ActiveDirectorySource source)` Creates new instance of NovellMethods ### Parameters | Name | Type | Description | | --- | --- | --- | | `source` | `ActiveDirectorySource` | Configuration | `public NovellMethods(List sources)` Creates new instance of NovellMethods ### Parameters | Name | Type | Description | | --- | --- | --- | | `sources` | `List` | Dictionary with configs and names | ## Methods `public ActiveDirectoryGroup? GetGroupByName(string name, string sourceName)` Get group by name from specific source. ### Parameters | Name | Type | Description | | --- | --- | --- | | `name` | `String` | | | `sourceName` | `String` | | ### Returns | Type | Description | | --- | --- | | `ActiveDirectoryGroup` | | `public List GetAllGroups(string? sourceName = null)` Returns all groups from specific source. Or all groups from all sources if sourceName is null. ### Parameters | Name | Type | Description | | --- | --- | --- | | `sourceName` | `String` | | ### Returns | Type | Description | | --- | --- | | `List` | | `public void CreateGroup(string groupName, string sourceName, List usersNames, Dictionary? attributes = null)` Creates group in specific source. ### Parameters | Name | Type | Description | | --- | --- | --- | | `groupName` | `String` | | | `sourceName` | `String` | | | `usersNames` | `List` | | | `attributes` | `Dictionary` | | `public void DeleteGroup(string groupName, string sourceName)` Deletes group from specific source. ### Parameters | Name | Type | Description | | --- | --- | --- | | `groupName` | `String` | | | `sourceName` | `String` | | `public ActiveDirectoryUser? GetUserByName(string username, string sourceName)` Returns user from specific source. ### Parameters | Name | Type | Description | | --- | --- | --- | | `username` | `String` | | | `sourceName` | `String` | | ### Returns | Type | Description | | --- | --- | | `ActiveDirectoryUser` | | `public void CreateUser(string username, string sourceName, Dictionary? attributes = null)` Creates user in specific source. ### Parameters | Name | Type | Description | | --- | --- | --- | | `username` | `String` | | | `sourceName` | `String` | | | `attributes` | `Dictionary` | | `public void DeleteUser(string username, string sourceName)` Deletes user from specific source. ### Parameters | Name | Type | Description | | --- | --- | --- | | `username` | `String` | | | `sourceName` | `String` | | `public void AddUserToGroup(string username, string groupName, string sourceName)` Adds user to group in specific source. ### Parameters | Name | Type | Description | | --- | --- | --- | | `username` | `String` | | | `groupName` | `String` | | | `sourceName` | `String` | | `public void RemoveUserFromGroup(string username, string groupName, string sourceName)` Removes user from group in specific source. ### Parameters | Name | Type | Description | | --- | --- | --- | | `username` | `String` | | | `groupName` | `String` | | | `sourceName` | `String` | | `public bool IsUserInGroup(string username, string groupName, string sourceName)` Checks if user is in group in specific source. ### Parameters | Name | Type | Description | | --- | --- | --- | | `username` | `String` | | | `groupName` | `String` | | | `sourceName` | `String` | | ### Returns | Type | Description | | --- | --- | | `Boolean` | | `public List GetAllUsersInGroup(string groupName, string sourceName)` Returns all users in group in specific source. ### Parameters | Name | Type | Description | | --- | --- | --- | | `groupName` | `String` | | | `sourceName` | `String` | | ### Returns | Type | Description | | --- | --- | | `List` | | `public List GetSources()` Returns all sources. ### Returns | Type | Description | | --- | --- | | `List` | List of sources. | `public ActiveDirectorySource GetSource(string name)` Returns source by name. ### Parameters | Name | Type | Description | | --- | --- | --- | | `name` | `String` | Source name. | ### Returns | Type | Description | | --- | --- | | `ActiveDirectorySource` | Source. | [Previous NovellExtensions](https://api.workflowengine.io/active-directory-plugin/OptimaJet.Workflow.Plugins.ActiveDirectoryPlugin.Providers/NovellExtensions/)