My Oracle Support Banner

User Cannot be Added to a Group Via API REST (Doc ID 2578108.1)

Last updated on MARCH 13, 2023

Applies to:

Content and Experience Cloud Service - Version 18.4.1 and later
Content and Experience Cloud Classic - Version 18.4.1 and later
Content and Experience Cloud - Version 18.4.1 and later
Information in this document applies to any platform.

Symptoms

When attempting to add the current user to a group via the API REST, the response is an error 400 with an html that reads:

Problems executing method (waggle.core.exceptions.XRuntimeException: User does not have necessary roles.).

User has CECEnterpriseUser role assigned through its IDCS group.

STEPS:

1. Make a POST request to the endpoint
  /osn/social/api/v1/connections
  from this request obtain the apiRandomID and the cookies needed for the next requests.
2. Make a POST request to the endpoint
  /osn/social/api/v1/groups/{group id}/members
  (where {group id}is the Id of the group to add a user) with the following JSON payload:

{
 "isGroup" : false,
 "member" : "12345",
 "role" : "GROUP_MEMBER"
}

(where 12345 is the Id of the user to add to the group)

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.