You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> The Microsoft Bot Identifier is currently in public preview. For more information about previews, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
78
+
79
+
The `MicrosoftBotIdentifier` interface represents a Microsoft bot with its Azure AD bot object ID. In the preview version the interface represents a bot of the Teams Voice applications such as Call Queue and Auto Attendant, and the application should be configured with a resource account. You can retrieve the Azure AD bot object ID via the [Microsoft Graph REST API /users](/graph/api/user-list) endpoint from the `id` property in the response. For more information on how to work with Microsoft Graph, try the [Graph Explorer](https://developer.microsoft.com/en-us/graph/graph-explorer?request=users%2F%7Buser-mail%7D&method=GET&version=v1.0&GraphUrl=https://graph.microsoft.com) and look into the [Graph SDK](/graph/sdks/sdks-overview).
80
+
81
+
#### Basic usage
82
+
83
+
```java
84
+
// get the Microsoft bot's ID from Graph APIs
85
+
UserCollectionPage users = graphClient.users()
86
+
.buildRequest()
87
+
.filter(filterConditions)
88
+
.select("displayName,id")
89
+
.get();
90
+
91
+
//here we assume that you have a function getBotFromUsers that gets the bot from the returned response
The `UnknownIdentifier` exists for future-proofing and you might encounter it when you are on an old version of the SDK and a new identifier type has been introduced recently. Any unknown identifier from the service will be deserialized to the `UnknownIdentifier` in the SDK.
@@ -79,7 +112,7 @@ The `UnknownIdentifier` exists for future-proofing and you might encounter it wh
79
112
80
113
```java
81
114
// create an identifier
82
-
var unknown =newUnknownIdentifier("a raw id that originated in the service");
115
+
UnknownIdentifier unknown =newUnknownIdentifier("a raw id that originated in the service");
83
116
```
84
117
85
118
#### API reference
@@ -100,6 +133,9 @@ else if (communicationIdentifier instanceof MicrosoftTeamsUserIdentifier) {
0 commit comments