ms::Graph method group member add (public)

 <instance of ms::Graph[i]> group member add group_id principals

Defined in packages/xooauth/tcl/ms-procs.tcl

Add a conversationMember to a group. Details: https://docs.microsoft.com/en-us/graph/api/group-post-members

Parameters:
group_id (required)
principals (required)

Testcases:
No testcase defined.
Source code:
if {[llength $principals] > 20} {
    error "max 20 users can be added in one call"
}
set members@odata.bind [lmap id $principals {
    set _ "https://graph.microsoft.com/v1.0/directoryObjects/${id}"
}]
set r [:request -method PATCH -token [:token]  -vars {members@odata.bind:array}  -url /groups/${group_id}]
return [:expect_status_code $r 204]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: