Skip to main content

Get Member Rights

To fetch member rights, use the getMemberRights() function. This function retrieves the rights associated with a specific member.

Steps to Get Member Rights

  1. Use the getMemberRights() function provided by the lmFeedClient object.
  2. Create an instance of GetMemberRightsRequest, as shown in the snippet, and pass it to the above method.
  3. Use the response as per your requirement.
import GetMemberRightsRequest from "../requests/getMemberRightsRequest";

try {
const getMemberRightsRequest = GetMemberRightsRequest.builder()
.setUuid(userUuid) // UUID of the member
.setIsCM(isCommunityManager) // Boolean flag for community manager status
.build();
const response = await lmFeedClient.getMemberRights(getMemberRightsRequest);
// Use the response as per your requirement.
} catch (error) {
// Handle the error as per your requirement.
}

Models

GetMemberRightsRequest

VARIABLETYPEDESCRIPTIONOPTIONAL
uuidstringUUID of the member
isCMbooleanWhether the user is a community manager

GetMemberRightsResponse

VARIABLETYPEDESCRIPTIONOPTIONAL
memberUserMember information
rightsMemberRights[]List of member rights