ms::Graph method team member add (public)
<instance of ms::Graph> team member add [ -roles roles ] team_id \ principal
Defined in packages/xooauth/tcl/ms-procs.tcl
Add a conversationMember to the collection of a team. Details: https://docs.microsoft.com/en-us/graph/api/team-post-members
- Switches:
- -roles (optional, defaults to
"member"
)- Parameters:
- team_id (required)
- principal (required)
- Testcases:
- No testcase defined.
Source code: 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]XQL Not present: Generic, PostgreSQL, Oracle