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>"}
0 -
jpp2 has it right, just a real-example:
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 152 General Questions
- 148 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
- 32 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 10 XM Fax
- Follow Categories