This document is archived and information here might be outdated.  Recommended version.


IDataServerManagerAdmin.CreateLogin Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesGDB > ESRI.ArcGIS.DataSourcesGDB > Interfaces > ID > IDataServerManagerAdmin Interface > IDataServerManagerAdmin.CreateLogin Method
ArcGIS Developer Help

IDataServerManagerAdmin.CreateLogin Method

Creates a new login.

[Visual Basic .NET]
Public Sub CreateLogin ( _
    ByVal loginName As String, _
    ByVal isAdministrator As Boolean _
)
[C#]
public void CreateLogin (
    string loginName,
    bool isAdministrator
);
[C++]
HRESULT CreateLogin(
  BSTR loginName,
  VARIANT_BOOL isAdministrator
);
[C++]
Parameters
loginName [in]

loginName is a parameter of type BSTR isAdministrator [in]
isAdministrator is a parameter of type bool

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The method creates a login on the server.  Login names are Microsoft Windows logins.

Remarks

If the isAdministrator parameter is set to true, the new user is made an adminstrator and has full administration rights, such as creating or deleting Geodatabases, adding users, etc.

You must be a server administrator to perform this operation.

See Also

IDataServerManagerAdmin Interface