2.1.0 • Published 7 months ago
@managed-api/microsoft-graph-v1-sr-connect v2.1.0
ScriptRunner Connect Managed API for Microsoft Graph
Managed API for Microsoft Graph is an API Client for Microsoft Graph by Adaptavist. You can read more about Managed APIs here.
This is ScriptRunner Connect runtime specific version of the Managed API (with sr-connect suffix). If you want to use Managed API in any other runtime, have a look at the runtime agnostic version.
Supported API calls
- fetch
- Groups
- Teams
- Messaging
- Team
- Users
Constructing Managed API
In ScriptRunner Connect a Managed API is constructed for you, but if you need to construct it manually, here's how you can do it:
import { MicrosoftGraphApi } from '@managed-api/microsoft-graph-v1-sr-connect';
export default async function() {
const api = new MicrosoftGraphApi('API_CONNECTION_ID');
}Contact
Feel free to drop ideas, suggestions or improvements into our Slack community channel.
Changelog
2.1.0
- Removed non-empty body from HEAD requests.
2.0.0
Breaking change: URL and query string parameters are now URL encoded, meaning if you encoded them explicitly before you have to remove your own encoding, otherwise they will get double encoded.
0.2.0
Added support for the following Users methods:
- List users that can be used as
Users.getUsersorAll.getUsers. - Create user that can be used as
Users.createUserorAll.createUser. - Get user that can be used as
Users.getUserorAll.getUser. - Get user that can be used as
Users.getMyUserorAll.getMyUser. - Update user that can be used as
Users.updateUserorAll.updateUser. - Delete a user that can be used as
Users.deleteUserorAll.deleteUser.
Added support for the following Teams.Team methods:
- Create team that can be used as
Teams.Team.createTeamorAll.createTeamsTeam. - Get team that can be used as
Teams.Team.getTeamorAll.getTeamsTeam. - Update team that can be used as
Teams.Team.updateTeamorAll.updateTeamsTeam. - Delete group that can be used as
Teams.Team.deleteTeamorAll.deleteTeamsTeam. - List members of team that can be used as
Teams.Team.getMembersorAll.getTeamsTeamMembers. - Add member to team that can be used as
Teams.Team.addMemberorAll.addTeamsTeamMember. - Get member of team that can be used as
Teams.Team.getMemberorAll.getTeamsTeamMember. - Remove member from team that can be used as
Teams.Team.removeMemberorAll.removeTeamsTeamMember. - Update member in team that can be used as
Teams.Team.updateMemberorAll.updateTeamsTeamMember. - List joinedTeams that can be used as
Teams.Team.getMyTeamsorAll.getMyTeams. - List joinedTeams that can be used as
Teams.Team.getUserTeamsorAll.getUserTeams. - List associatedTeamInfo that can be used as
Teams.Team.getUserAssociatedTeamsorAll.getUserAssociatedTeams. - List all teams in Microsoft Teams for an organization that can be used as
Groups.getGroupsorAll.getGroups.
Added support for the following Teams.Messaging.Channel methods:
- List channels that can be used as
Teams.Messaging.Channel.getChannelsorAll.getTeamsChannels. - Create channel that can be used as
Teams.Messaging.Channel.createChannelorAll.createTeamsChannel. - Get channel that can be used as
Teams.Messaging.Channel.getChannelorAll.getTeamsChannel. - Patch channel that can be used as
Teams.Messaging.Channel.updateChannelorAll.updateTeamsChannel. - Delete channel that can be used as
Teams.Messaging.Channel.deleteChannelorAll.deleteTeamsChannel. - List members of a channel that can be used as
Teams.Messaging.Channel.getMembersorAll.getTeamsChannelMembers. - Add member to channel that can be used as
Teams.Messaging.Channel.addMemberorAll.addMemberToTeamsChannel. - Remove member from channel that can be used as
Teams.Messaging.Channel.removeMemberorAll.removeMemberFromTeamsChannel. - List channel messages that can be used as
Teams.Messaging.Channel.getMessagesorAll.getTeamsChannelMessages. - Send chatMessage in channel that can be used as
Teams.Messaging.Channel.sendMessageorAll.sendTeamsChannelMessage. - Get chatMessage in a channel or chat that can be used as
Teams.Messaging.Channel.getMessageorAll.getTeamsChannelMessage. - Update chatMessage that can be used as
Teams.Messaging.Channel.updateMessageorAll.updateTeamsChannelMessage. - List replies that can be used as
Teams.Messaging.Channel.getMessageRepliesorAll.getTeamsChannelMessageReplies. - Send replies to a message in a channel that can be used as
Teams.Messaging.Channel.replyToMessageorAll.replyToTeamsChannelMessage.
Added support for the following Teams.Messaging.Chat methods:
- List chats that can be used as
Teams.Messaging.Chat.getChatsorAll.getTeamsChats. - Create chat that can be used as
Teams.Messaging.Chat.createChatorAll.createTeamsChat. - Get chat that can be used as
Teams.Messaging.Chat.getChatorAll.getTeamsChat. - Update chat that can be used as
Teams.Messaging.Chat.updateChatorAll.updateTeamsChat. - List members of a chat that can be used as
Teams.Messaging.Chat.getMembersorAll.getTeamsChatMembers. - Add member to a chat that can be used as
Teams.Messaging.Chat.addMemberorAll.addMemberToTeamsChat. - Get conversationMember in a chat that can be used as
Teams.Messaging.Chat.getMemberorAll.getTeamsChatMember. - Remove member from chat that can be used as
Teams.Messaging.Chat.removeMemberorAll.removeTeamsChatMember. - List messages in a chat that can be used as
Teams.Messaging.Chat.getMessagesorAll.getTeamsChatMessages. - Send message in a chat that can be used as
Teams.Messaging.Chat.sendMessageorAll.sendTeamsChatMessage. - Get chatMessage in a channel or chat that can be used as
Teams.Messaging.Chat.getMessageorAll.getTeamsChatMessage. - Update chatMessage that can be used as
Teams.Messaging.Chat.updateMessageorAll.updateTeamsChatMessage.
Copyright Adaptavist 2025 (c) All rights reserved