Class Identity

java.lang.Object
com.independentsoft.graph.files.Identity

public class Identity extends Object
Represents an identity of an actor in Microsoft Graph.

An Identity describes a single actor – such as a user, device, or application – that is associated with an action or resource. Identities are typically returned as part of an IdentitySet, for example to indicate who created or last modified a drive item.

Example usage:

 Identity user = identitySet.getUser();

 if (user != null)
 {
     System.out.println(user.getDisplayName());
     System.out.println(user.getId());
 }
 
Since:
1.0
See Also:
identity resource type, IdentitySet
  • Constructor Details

    • Identity

      public Identity()
    • Identity

      public Identity(JsonObject jsonObject)
  • Method Details