Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# NET_SDK_ManageUser

### Interface Definition

C++C#

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    BOOL NET_SDK_ManageUser(
        LONG lUserID,
        DD_OPERATE_TYPE dwCommand,
        char* userName,
        char* groupGuid,
        char* groupName,
        char* password,
        char* email,
        BOOL allowModifyPwd,
        char* newName = NULL,
        BOOL closePermissionCtrl = FALSE);

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    public static extern Boolean NET_SDK_ManageUser(
        Int32 lUserID,
        UInt32 dwCommand,
        string userName,
        string groupGuid,
        string groupName,
        string password,
        string email,
        Boolean allowModifyPwd,
        string newName,
        Boolean closePermissionCtrl);

### Function Description

User management (IPC does not support changing user names).

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
lUserIDin | LONG | User ID, the return value of `NET_SDK_Login` or `NET_SDK_LoginEx`.
dwCommandin | `DD_OPERATE_TYPE` | The action to be performed.
userNamein | char* | Username.
groupGuidin | char* | User group guid.
groupNamein | char* | User group name.
passwordin | char* | User password.
emailin | char* | Mail.
allowModifyPwdin | BOOL | Whether to change the password. When it is TRUE, the password can be changed.
newNamein | char* | New username.
closePermissionCtrlin | BOOL | Whether to close the user's user permission control. TRUE means closed.

### Return Value

- Type：BOOL

- Remark：Returns TRUE if successful, FALSE if failed.

### Remarks

None

Error Code