Class Relations
- class: ::nx::EnsembleObject
::nx::EnsembleObject create ::ms::Graph::slot::__team::member
Methods (to be applied on the object)
add (scripted)
set @odata.type "#microsoft.graph.aadUserConversationMember"
set roles $roles
set user@odata.bind "https://graph.microsoft.com/v1.0/users('${principal}')"
set r [:request -method POST -token [:token] -vars {@odata.type roles:array user@odata.bind} -url https://graph.microsoft.com/${:version}/teams/${team_id}/members]
return [:expect_status_code $r 201]
list (scripted)
set r [:request -method GET -token [:token] -url /teams/${team_id}/members?[:params {filter select}]]
return [:expect_status_code $r 200]
remove (scripted)
set r [:request -method DELETE -token [:token] -url /teams/${team_id}/members/${principal}]
return [:expect_status_code $r 204]