Member
class Member
A member of an organization. Organization administrators can use these methods to review and manage members, e.g., approving membership requests or applying labels.
Constructors
Organization.member(name)
Return a Member of an organization, given their username.
Organization.listMembers([maxResults, options])
List the Members of an organization.
Examples
const organization = redivis.organization('my_organization');
const member = organization.member('jane');
await member.get();
console.log(member.properties.status);
await member.update({ labelsToAdd: ['faculty'] });
await member.addComment('Verified affiliation');Attributes
name
The member's username.
organization
The Organization that the member belongs to.
user
The User who is the member.
properties
An object containing the API resource representation of the member. This will only be populated after certain methods are called, particularly the get method.
Methods
Member.addComment(text)
Add a comment to the member.
Check whether the member exists.
Fetch the member's metadata, populating member.properties.
Member.update(options)
Update the member's status or labels.
Was this helpful?

