Overview
Manage the membership lifecycle of an API Experience Hub (AEH) portal. Prospects normally request access through the portal's built-in self-registration and are not yet portal members; members are active users with assigned user groups. Review and approve or reject those prospects, audit the member list, adjust user-group assignments per member, and disable members who should no longer have access. When you do not want to use the built-in self-registration, optionally create prospects through the management API instead.
What you'll build: A governed portal membership list with the right people assigned to the right user groups.
Prerequisites
Before starting, ensure:
-
Authentication ready
- Valid Bearer token for Anypoint Platform
- AEH Administrator or AEH Portal Administrator permissions
-
Environment already bootstrapped
- Connection and portal exist (use the AEH UI if not)
- At least one user group exists in the portal (see
manage-portal-user-groups)
Step 1: List AEH Connections
Retrieve the AEH connections the user has access to.
$ curl -X GET ${baseUrl}/api/v1/connections \
-H "Authorization: Bearer ${authToken}" \
-H "Content-Type: application/json"
Captured Variables
connectionId
$[*].id
What happens next: The chosen connectionId scopes every subsequent call.
Step 2: List Portals on the Connection
Pick the target portal whose membership you want to manage.
$ curl -X GET ${baseUrl}/api/v1/connections/{connectionId}/apiPortals \
-H "Authorization: Bearer ${authToken}" \
-H "Content-Type: application/json"
Captured Variables
portalId
$[*].id
Step 3: Create a Prospect Instead of Using Self-Registration (Optional)
Normally, users register through the portal's built-in self-registration. Skip this step and continue to Step 4 to review those registrations. When you do not want to use that self-registration flow, create a pending registration on behalf of a new user with POST /api/v1/connections/{connectionId}/apiPortals/{portalId}/prospects. API creation is an alternative registration path, not a prerequisite for approving or rejecting prospects. Also skip this step when managing existing members.
$ curl -X POST ${baseUrl}/api/v1/connections/{connectionId}/apiPortals/{portalId}/prospects \
-H "Authorization: Bearer ${authToken}" \
-H "Content-Type: application/json"
Captured Variables
createdProspectId
$.id
createdProspectStatus
$.status
What happens next: Expect 201 Created with the prospect's id and status: PENDING. Creation does not approve the user. Continue to Step 4 to review pending prospects, or use createdProspectId as prospectId in Step 5 or Step 6 when the admin requests approval or rejection.
Step 4: List Pending Prospects
Retrieve the list of users who have requested access to the portal but are not yet members.
$ curl -X GET ${baseUrl}/api/v1/connections/{connectionId}/apiPortals/{portalId}/prospects \
-H "Authorization: Bearer ${authToken}" \
-H "Content-Type: application/json"
Captured Variables
prospects
$[*]
prospectId
$[*].id
What happens next: Present the prospect list and let the admin choose who to approve or reject.
Step 5: Approve a Prospect
Promote a prospect to an active portal member and assign them to one or more user groups. Repeat per prospect the admin wants to approve.
$ curl -X PATCH ${baseUrl}/api/v1/connections/{connectionId}/apiPortals/{portalId}/prospects/{prospectId} \
-H "Authorization: Bearer ${authToken}" \
-H "Content-Type: application/json"
Captured Variables
approvedUserId
$.userId
What happens next: The prospect is now a portal member with the chosen group assignments.
Step 6: Reject a Prospect (Optional)
Reject prospects who should not be granted access.
$ curl -X DELETE ${baseUrl}/api/v1/connections/{connectionId}/apiPortals/{portalId}/prospects/{prospectId} \
-H "Authorization: Bearer ${authToken}" \
-H "Content-Type: application/json"
Captured Variables
rejectedProspectId
$.id
What happens next: The prospect is removed from the queue. They can re-request access later.
Step 7: List Portal Members
Retrieve active portal members to audit who currently has access.
$ curl -X GET ${baseUrl}/api/v1/connections/{connectionId}/apiPortals/{portalId}/users \
-H "Authorization: Bearer ${authToken}" \
-H "Content-Type: application/json"
Captured Variables
members
$.users[*]
userId
$.users[*].id
Step 8: Inspect a Member's User-Group Assignments
Fetch the specific group assignments of one member.
$ curl -X GET ${baseUrl}/api/v1/connections/{connectionId}/apiPortals/{portalId}/users/{userId} \
-H "Authorization: Bearer ${authToken}" \
-H "Content-Type: application/json"
Captured Variables
memberUserGroups
$.userGroups[*]
What happens next: Present the current assignments; let the admin decide new memberships for Step 9.
Step 9: Update a Member's User-Group Assignments
Replace or extend the user groups assigned to a specific member.
$ curl -X PUT ${baseUrl}/api/v1/connections/{connectionId}/apiPortals/{portalId}/users/{targetUserId}/userGroups \
-H "Authorization: Bearer ${authToken}" \
-H "Content-Type: application/json"
Captured Variables
updatedUserId
$.userId
What happens next: The member now has exactly the user groups you specified.
Step 10: Disable a Portal Member (Optional)
Revoke a member's access without deleting their record — useful for offboarding.
$ curl -X PATCH ${baseUrl}/api/v1/connections/{connectionId}/apiPortals/{portalId}/users/{targetUserId}/disable \
-H "Authorization: Bearer ${authToken}" \
-H "Content-Type: application/json"
Captured Variables
disabledUserId
$.userId
What happens next: The disabled member can no longer sign in to the portal. Their API contracts remain intact for audit.
Completion Checklist
- [ ] Connection and portal selected
- [ ] If using an alternative to built-in self-registration, prospect created through the API with status PENDING; otherwise, creation step skipped
- [ ] Pending prospects reviewed
- [ ] Approved prospects assigned to correct user groups
- [ ] Unwanted prospects rejected
- [ ] Existing members' group assignments audited
- [ ] Offboarded members disabled (if applicable)
What You've Built
✅ Governed Portal Membership — New prospects are registered when requested, prospects are triaged, and approved members have the right user-group entitlements.
Next Steps
- Manage user groups themselves — See
manage-portal-user-groupsto define the groups referenced here. - Curate the visible catalog — See
curate-portal-assetsto control which APIs members see. - Monitor contracts — Track which approved members create consumer contracts against published APIs.
Troubleshooting
- Create returns
400: Check that all four required fields are present and at most 96 characters, and that email and username have email format. If the username already exists in Salesforce, do not retry creation with the same username. - Create returns
409: The portal's prospect limit has been reached. Review existing registrations before retrying. - Portal listing returns
500: Record the response'srequestIdand investigate the connection. Continue only with a known valid connection and AEH portal ID.