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
- Use the
getMemberRights()
function provided by thelmFeedClient
object. - Create an instance of
GetMemberRightsRequest
, as shown in the snippet, and pass it to the above method. - 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
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
uuid | string | UUID of the member | |
isCM | boolean | Whether the user is a community manager |
GetMemberRightsResponse
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
member | User | Member information | |
rights | MemberRights[] | List of member rights |