add_to_group 214 Bytes
Newer Older
Pierre Ozoux's avatar
Pierre Ozoux committed
1
2
3
4
5
6
7
#!/bin/bash -eux

source /etc/environment

user=$1
group=$2

Timothee Gosselin's avatar
Timothee Gosselin committed
8
curl -X POST -H "OCS-APIRequest:true" --user ${cloud_admin}:${cloud_pass} https://${cloud_hostname}/ocs/v1.php/cloud/users/${1}/groups -d groupid="${2}"