Hi,
I would like to create user and give accesses to projects via Rest API. I succeeded to create user but it's impossible to give accesses to projets without importing all projects. I used the Rest Call http://localhost:8080/rest/v1/group/name/mygroup/project/import?ignoreUnresolved=true&disableSchedules=true&ignoreUnresolvedCDC=true&disableCDC=true&setUpSource=true&ignoreUnresolvedForCDCTask=true&setUpSourceForCDCTask=true&onConflict=OVERWRITE with data :
{
"objects": [
{
"name": "myproject",
"environmentExports": {
"objects": []
},
"variables": [],
"accessControlList": {
"admins": [
"ec2-user"
],
"usersWithAccess": [
"test"
],
"publicAdmins": false,
"publicUsers": false
}
}
]
}
The request works but the project is erased. Can you tell me if you know another way is available to give accessess without overwriting the project.
Regards,