/// <summary> /// Directory objects that are owners of this service principal. /// </summary> /// <remarks> /// The owners are a set of non-admin users who are allowed to modify this /// object. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='objectId'> /// The object ID of the service principal for which to get owners. /// </param> public static IPage <DirectoryObject> ListOwners(this IServicePrincipalsOperations operations, string objectId) { return(operations.ListOwnersAsync(objectId).GetAwaiter().GetResult()); }