Member Entitlement Management#

Prerequisites#

See QuickStart

Examples#

Now that we have the connection object webApi, we can get the instance of MemberEntitlementManagementApi.

var mem = webApi.getMemberEntitlementManagementApi();

We have access to the functionalities that Member Entitlement Management Api has.

Available functions#

Get all group entitlements#

Get a list of group entitlements.

mem.getGroupEntitlements();

Get members from a group#

Get members from a group using group id.

mem.getMembers("group-id");

Remove user from a group#

Remove a member from the group using group id and member id.

mem.removeMemberFromGroup("group-id", "member-id");

Add an user entitlement#

Add a user and assign a license.

mem.addUserEntitlement(AccountLicenseType.STAKEHOLDER, "jane.doe@gmail.com", GroupType.PROJECTCONTRIBUTOR, "project-id");

-Delete an user entitlement

Delete a user entitlement.

mem.deleteUserEntitlement("user-id");

Get user entitlements#

Get a list of user entitlements.

mem.getUserEntitlements();

Update an user entitlement#

Update an user's account type or licensing source.

mem.updateUserEntitlement("user-id", AccountLicenseType.EXPRESS, LicensingSource.MSDN);