Click or drag to resize

SystemUserProvider Class

This class contains methods which retrieve the IDs of several fictitious Microsoft Dynamics CRM system users. Several SDK samples require these additional user accounts in order to run.
Inheritance Hierarchy
SystemObject
  Novalys.VisualGuard.Security.CRMSystemUserProvider

Namespace:  Novalys.VisualGuard.Security.CRM
Assembly:  Novalys.VisualGuard.Security.CRM (in Novalys.VisualGuard.Security.CRM.dll) Version: 2019.0.101.19 (2019.0.0101.19)
Syntax
public class SystemUserProvider

The SystemUserProvider type exposes the following members.

Constructors
  NameDescription
Public methodSystemUserProvider
Initializes a new instance of the SystemUserProvider class
Top
Methods
  NameDescription
Public methodStatic memberConsolePromptForLDAPPath
Helper method to prompt the user for the LDAP path for the network
Public methodStatic memberCreateADAccount
Helper method to create an active directory account
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberGetUserIdIfExist
Helper method to check if system user already exist with either given username or first and last name.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberRetrieveAUserWithoutAnyRoleAssigned
Public methodStatic memberRetrieveDelegates
Public methodStatic memberRetrieveMarketingManager(OrganizationServiceProxy)
Public methodStatic memberRetrieveMarketingManager(OrganizationServiceProxy, String)
Public methodStatic memberRetrieveSalesManager(OrganizationServiceProxy)
Public methodStatic memberRetrieveSalesManager(OrganizationServiceProxy, String)
Public methodStatic memberRetrieveSalespersons
Public methodStatic memberRetrieveSystemUser
Retrieves the requested SystemUser record. If the record does not exist, a new Microsoft Dynamics CRM SystemUser record is created and an associated Active Directory account is created, if it doesn't currently exist.
Public methodStatic memberRetrieveVPSales
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
For On-premises and IFD deployments, if these users do not exist they are created in Active Directory. This assumes that the system user account under which the application runs has system administrator privileges. Since it is not possible to programmatically create user accounts in Microsoft account, when running this code against a Microsoft Dynamics CRM Online server, you will have to manually add these users.
See Also