- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class Relations
::nx::EnsembleObject create ::ms::Graph::slot::__team
Methods (to be applied on the object)
archive (scripted)
# Archive the specified team. When a team is archived, # users can no longer send or like messages on any channel # in the team, edit the team's name, description, or other # settings, or in general make most changes to the # team. Membership changes to the team continue to be # allowed. # # Details: https://docs.microsoft.com/en-us/graph/api/team-archive # # @param shouldSetSpoSiteReadOnlyForMembers This optional # parameter defines whether to set permissions for team # members to read-only on the SharePoint Online site # associated with the team. Setting it to false or # omitting the body altogether will result in this step # being skipped. # # @param wait when specified, perform up to 10 requests checking the status of the async command # @param donecallback cmd to be executed when the async # command succeeded or failed. One additional argument is # passed to the callback indicating the result status. # set r [:request -method POST -token [:token] -url /teams/$team_id/archive?[:params {shouldSetSpoSiteReadOnlyForMembers}]] return [:async_operation_status -wait=$wait -donecallback $donecallback $r]
clone (scripted)
# # Create a copy of a team specified by "team_id". It is # possible to copy just some parts of the old team (such # as "apps", "channels", "members", "settings", or "tabs", # or a comma-separated combination). # # @param team_id of the team to be cloned (might be a template) # @param partsToClone specify e.g. as "apps,tabs,settings,channels" # @param wait when specified, perform up to 10 requests checking the status of the async command # @param donecallback cmd to be executed when the async # command succeeded or failed. One additional argument is # passed to the callback indicating the result status. # # Details: https://docs.microsoft.com/en-us/graph/api/team-clone set r [:request -method POST -token [:token] -vars { classification description displayName mailNickname partsToClone visibility } -url /teams/${team_id}/clone] return [:async_operation_status -wait=$wait -donecallback $donecallback $r]
create (scripted)
# # Create a new team. A team owner must be provided when # creating a team in an application context. # # Details: https://docs.microsoft.com/en-us/graph/api/team-post # # @param wait when specified, perform up to 10 requests checking the status of the async command # @param donecallback cmd to be executed when the async # command succeeded or failed. One additional argument is # passed to the callback indicating the result status. # set template@odata.bind "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" set members [subst {{ @odata.type string "#microsoft.graph.aadUserConversationMember" roles array {0 string owner} user@odata.bind string "https://graph.microsoft.com/v1.0/users('$owner')" }}] set r [:request -method POST -token [:token] -vars {template@odata.bind description displayName visibility members:array,document} -url /teams] return [:async_operation_status -wait=$wait -donecallback $donecallback $r]
delete (scripted)
# Delete group/team. When deleted, Microsoft 365 groups are # moved to a temporary container and can be restored # within 30 days. After that time, they're permanently # deleted. # # Details: https://docs.microsoft.com/en-us/graph/api/group-delete set r [:request -method DELETE -token [:token] -url /groups/$team_id] return [:expect_status_code $r 204]
get (scripted)
# # Retrieve the properties and relationships of the # specified team. # # Every team is associated with a group. The group has the # same ID as the team - for example, /groups/{id}/team is # the same as /teams/{id}. For more information about # working with groups and members in teams, # # Details: https://docs.microsoft.com/en-us/graph/api/team-get # # @param expand retrieve related information via navigation property, e.g. members # @param select select subset of attributes set r [:request -method GET -token [:token] -url /teams/$team_id?[:params {expand select}]] return [:expect_status_code $r 200]
unarchive (scripted)
# Restore an archived team. This restores users' ability to # send messages and edit the team, abiding by tenant and # team settings. Teams are archived using the archive API. # # Details: https://docs.microsoft.com/en-us/graph/api/team-unarchive # # @param wait when specified, perform up to 10 requests checking the status of the async command # @param donecallback cmd to be executed when the async # command succeeded or failed. One additional argument is # passed to the callback indicating the result status. set r [:request -method POST -token [:token] -url /teams/$team_id/unarchive] return [:async_operation_status -wait=$wait -donecallback $donecallback $r]
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables