addUserToGroup method
Future<Group>
addUserToGroup({
- String? groupname,
- String? groupId,
- required UpdateUserToGroupBean body,
Adds a user to a group.
Permissions required: Site administration (that is, member of the site-admin group).
Implementation
Future<Group> addUserToGroup(
{String? groupname,
String? groupId,
required UpdateUserToGroupBean body}) async {
return Group.fromJson(await _client.send(
'post',
'rest/api/3/group/user',
queryParameters: {
if (groupname != null) 'groupname': groupname,
if (groupId != null) 'groupId': groupId,
},
body: body.toJson(),
));
}