Skip to main content

 Advanced

Advanced topics

Servlet: AddMemberToGroup

com.pageseeder.AddMemberToGroup

Description

Handles adding a member to a group.

Similar functionality can be achieved using one of the following:

HTTP Method: GET

Displays add member form.

At least one of grp or groupname is required at the end.

The redirect parameter does not trigger an HTTP redirect, but it is returned in the response.

HTTP Parameters

NameDescriptionRequiredTypeDefault
grpID of group to add member to (required if groupname is not specified).maybelong
groupnameName of group to add member to (required if grp is not specified).maybestring
redirectURL path to redirect to when finished (optional).nostring

HTTP Method: POST

Handles http post requests to add a member.

(1) Required for action = 'New Member' or 'Add'

(2) Required for action = 'Add'

(3) Required for action = 'Find Member'

HTTP Parameters

NameDescriptionRequiredTypeDefault
grpID of group to add member to (required if groupname not set).maybelong
groupnameName of group to add member to (required if grp not set).maybestring
actionThe action to perform (for example "Add").noenum
redirectURL path to redirect to when finished.nostring
roleThe role of the user (1).maybeenumReviewer
notificationThe notification for the user (1).maybeenum
listedIf 'Yes', make member's email address available (1).noyes|noYes
confirmIf 'Yes', send confirmation message (1).noyes|noNo
mem_usernameUsername of user to add (2).maybestring
findTypeType available (3).maybeenum
findValueValue to search on for findType (3).maybestring

action

The action must be "New Member", "Find Member" or "Add".

role

The role must be:

  • Guest
  • Reviewer
  • Contributor
  • Manager
  • Approver
  • Moderator
  • Mod & App

notification

The notification must be "None", "Immediate" or "Daily".

findType

The find type must be one of "username", "email", "firstName", "surname".

PageSeeder Return Status

errorModerator already exists
missing-parameterFind value missing
success-reloadMember added successfully
Created on , last edited on