API To Create groupmemberuser is not working
Hi,
We are trying to add the member to the group we are using the below API to add the group member.
we are using the below JSON in the payload:
{
"properties":
{
"title": "SPADOLUS.frtest"}
}
We are getting an error as below in the response:
{
"status": 400,
"code": "E_USER_HREF_NOT_CORRECT",
"message": "The src link of the user is not correct. The user name could not be resolved.",
"id": "3e98ab0b-8252-4e85-be83-5bb2fea92f64"
}
What could be the issue?
Best Regards,
Aditya
Answers
-
You need to pass the user href in the body:
POST method http://<host>:<port>/dctm-rest/repositories/<repository>/groups/<group_name>/users
Body (JSON):
{ "href":"http://<host>:<port>/dctm-rest/repositories/<repository>/users/<user_name>"}
1 -
jpp2 has it right, just a real-example:
1 -
Hi @jpp2 Thank you so much. This resolved my issue.
Is there any mention of this in any documentation?
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 156 General Questions
- 149 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 33 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 10 XM Fax
- Follow Categories