Map a directory group to a project role
curl --request POST \
--url https://app.hookie.ai/admin/api/workspace/directory-groups \
--header 'Content-Type: application/json' \
--data '
{
"group_id": "<string>",
"project_id": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({group_id: '<string>', project_id: '<string>'})
};
fetch('https://app.hookie.ai/admin/api/workspace/directory-groups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/workspace/directory-groups"
payload = {
"group_id": "<string>",
"project_id": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}Workspace
Map a directory group to a project role
Gives every member of the group who is also a member of this workspace (matched by email) the role in the project, and keeps it in step: hourly, and on sync. A person in two mapped groups gets the stronger role. Members added by hand are never changed. Nobody joins the workspace through a group.
POST
/
admin
/
api
/
workspace
/
directory-groups
Map a directory group to a project role
curl --request POST \
--url https://app.hookie.ai/admin/api/workspace/directory-groups \
--header 'Content-Type: application/json' \
--data '
{
"group_id": "<string>",
"project_id": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({group_id: '<string>', project_id: '<string>'})
};
fetch('https://app.hookie.ai/admin/api/workspace/directory-groups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/workspace/directory-groups"
payload = {
"group_id": "<string>",
"project_id": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}