Independentsoft
Any library, any programming language
Home
Purchase
Support
Company
Contact
JGraph
>
Tutorial
> Delete group owner
The following example shows you how to remove an owner from a group.
import com.independentsoft.graph.GraphClient; import com.independentsoft.graph.GraphException; public class Test { public static void main(String[] args) { try { GraphClient client = new GraphClient(); client.setClientId("63333333-209e-454e-b7bd-55a4d201270f"); client.setTenant("independentsoft.onmicrosoft.com"); client.setClientSecret("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"); String groupId = "123456-e48c-4569-a3b0-639cce67fdfc"; String ownerId = "789012-a1b2-c3d4-e5f6-123456789abc"; client.deleteGroupOwner(groupId, ownerId); System.out.println("Group owner removed."); } catch (GraphException e) { System.out.println(e.getCode()); System.out.println(e.getMessage()); } } }
Need help? Ask our developers:
Name*
Email*
Message*