put
https://app.officernd.com/api/v2/organizations//members//portal-access
Manage portal access for a member. This endpoint enables or disables a member's ability to access the members portal.
Enabling Portal Access (isPortalAccessEnabled = true):
| Scenario | Behavior |
|---|---|
| Member has no portal access | Creates or finds a user (by member email), creates the user role, and sends an invitation email |
| Member already has portal access | If shouldSendInvitation is true, re-sends the invitation email; otherwise does nothing |
Disabling Portal Access (isPortalAccessEnabled = false):
- Deletes the user role that links the user to the member, revoking portal access
Request Properties:
isPortalAccessEnabled: Required. Set totrueto grant or maintain access,falseto revoke accessshouldSendInvitation: Optional (default: false). Whentrue, re-sends an invitation email. Only applies when the member already has portal access
Required scopes: flex.community.members.portalAccess.update