Add local users and Active Directory users and groups to a local group and SVM
Add local users, Active Directory users, and groups to a specified local group and SVM to manage group membership effectively. This operation appends the specified members to the existing list to maintain and update group configurations seamlessly.
HTTP method and endpoint
POST /protocols/cifs/local-groups/{svm.uuid}/{local_cifs_group.sid}/members
Introduced in
ONTAP 9.10
Usage notes
Adds local users, Active Directory users and Active Directory groups to the specified local group and SVM.
Important note
-
Specified members are appended to the existing list of members.
Required properties
-
svm.uuidorsvm.name- Existing SVM for which members are added to local group. -
local_cifs_group.sid- Security ID of the local group to which members are added. -
nameorrecords- Local users, Active Directory users, or Active Directory groups to be added to a particular local group.
Related ONTAP commands
-
vserver cifs users-and-groups local-group add-members
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
local_cifs_group.sid |
string |
path |
True |
Local group SID |
return_records |
boolean |
query |
False |
The default is false. If set to true, the records are returned.
|
svm.uuid |
string |
path |
True |
UUID of the SVM to which this object belongs. |
Request Body
| Name | Type | Description |
|---|---|---|
name |
string |
Local user, Active Directory user, or Active Directory group which is a member of the specified local group. |
records |
array[records] |
An array of local users, Active Directory users, and Active Directory groups specified to add or delete multiple members to or from a local group in a single API call.
Not allowed when the |
Example request
{
"name": "string",
"records": [
{
"name": "string"
}
]
}
Response
Status: 201, Created
Error
Status: Default
ONTAP Error Response Codes
| Error Code | Description |
|---|---|
655673 |
Failed to resolve the member to be added to the specified group. |
655718 |
Failed to add a member to the specified group. The error code returned details the failure along with the reason for the failure. Take corrective actions as per the specified reason. |
655742 |
The "records" field must not be specified when a single user is added. |
655743 |
SVM UUID and CIFS local group SID are invalid fields for the "records" parameter. |
Definitions
See Definitions
records
| Name | Type | Description |
|---|---|---|
name |
string |
Local user, Active Directory user, or Active Directory group which is a member of the specified local group. |
local_cifs_group_members
| Name | Type | Description |
|---|---|---|
name |
string |
Local user, Active Directory user, or Active Directory group which is a member of the specified local group. |
records |
array[records] |
An array of local users, Active Directory users, and Active Directory groups specified to add or delete multiple members to or from a local group in a single API call.
Not allowed when the |
error_arguments
| Name | Type | Description |
|---|---|---|
code |
string |
Argument code |
message |
string |
Message argument |
error
| Name | Type | Description |
|---|---|---|
arguments |
array[error_arguments] |
Message arguments |
code |
string |
Error code |
message |
string |
Error message |
target |
string |
The target parameter that caused the error. |