1

We are working on Tridion User group Reconciliation. So, we are checking if there is a possibility to add the Publications to users groups using Tridion Core Service. Kindly help with this.

4
  • Rule of thumb: if the UI can do it, then CoreService can do it. The UI uses the CoreService.
    – Nuno Linhares
    Commented May 30, 2019 at 10:51
  • Hi Nuno,Thanks for your reply. Can you provide some code reference to add the list of publications to the user groups through core service. Commented May 30, 2019 at 11:29
  • Your question is “is it possible”, and the answer to that is yes. In typical Stack Exchange model, please show what you tried and where you are stuck, and the community will step in to help.
    – Nuno Linhares
    Commented May 30, 2019 at 23:45
  • Please, can you show the specific piece of code that you've tried? stackoverflow.com/help/how-to-ask - this link describes how to ask a question. Commented May 31, 2019 at 19:31

1 Answer 1

8

You can download the Core Service API reference documentation here. If you look at the documentation you can see that the Groups are represented by the GroupData class. In GroupData, you can set the User's group membership by using the GroupMemberships property and each membership is represented by the GroupMembershipData class. In GroupMembershipData you'd want to add the publications using the Scope property in GroupMembershipData.

enter image description here

This answer might help you too.

2
  • Hi Sabarish. Great to see you welcoming a new contributor and pointing them to the help. Thanks for that. Could I suggest that you move your first paragraph to a comment? That will help people focus on the technical content of your answer. Commented May 31, 2019 at 16:22
  • 1
    Hi Dominic! Thanks for your comment. Moving the first paragraph to a comment makes sense. I'll do that. Commented May 31, 2019 at 19:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.