MicrosoftTeamsUserIdentifierModel (Azure SDK for Java Reference Documentation)
Michael Gray
Published Feb 15, 2026
com.azure.messaging.eventgrid.systemevents.MicrosoftTeamsUserIdentifierModel
public final class MicrosoftTeamsUserIdentifierModelextends Object
A Microsoft Teams user.
Constructor Summary
Constructors
Creates an instance of MicrosoftTeamsUserIdentifierModel class.
Method Summary
Get the cloud property: The cloud that the Microsoft Teams user belongs to.
Get the userId property: The Id of the Microsoft Teams user.
Get the isAnonymous property: True if the Microsoft Teams user is anonymous.
Set the cloud property: The cloud that the Microsoft Teams user belongs to.
Set the isAnonymous property: True if the Microsoft Teams user is anonymous.
Set the userId property: The Id of the Microsoft Teams user.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Details
MicrosoftTeamsUserIdentifierModel
public MicrosoftTeamsUserIdentifierModel()
Creates an instance of MicrosoftTeamsUserIdentifierModel class.
Method Details
getUserId
Get the userId property: The Id of the Microsoft Teams user. If not anonymous, this is the AAD object Id of the user.
- Returns:
- the userId value.
setUserId
Set the userId property: The Id of the Microsoft Teams user. If not anonymous, this is the AAD object Id of the user.
- Parameters:
userId- the userId value to set.- Returns:
- the MicrosoftTeamsUserIdentifierModel object itself.
isAnonymous
Get the isAnonymous property: True if the Microsoft Teams user is anonymous. By default false if missing.
- Returns:
- the isAnonymous value.
setIsAnonymous
Set the isAnonymous property: True if the Microsoft Teams user is anonymous. By default false if missing.
- Parameters:
isAnonymous- the isAnonymous value to set.- Returns:
- the MicrosoftTeamsUserIdentifierModel object itself.
getCloud
Get the cloud property: The cloud that the Microsoft Teams user belongs to. By default 'public' if missing.
- Returns:
- the cloud value.
setCloud
Set the cloud property: The cloud that the Microsoft Teams user belongs to. By default 'public' if missing.
- Parameters:
cloud- the cloud value to set.- Returns:
- the MicrosoftTeamsUserIdentifierModel object itself.