Skip to Content
author's profile photo Former Member
Former Member

SubscriptionException : insufficient rights to retrieve all subscriptions

Hi All,

I am trying to retrive all subscriptions of a specific folder. But getting following exception :

<b>com.sapportals.wcm.repository.service.subscription.SubscriptionException: SubscriptionManager: Given user has insufficient rights to retrieve all subscriptions for a resource.</b>

Which rights are required to read all the subscriptions?

Bellow is code snippet I am using :

IUser user = 	WPUMFactory.getUserFactory().getEP5User(request.getUser());
ResourceContext ctxt = new ResourceContext(user);
RID rid = RID.getRID("/foldername");
IResource res =  ResourceFactory.getInstance().getResource(rid, ctxt);
if (res != null) {
	SubscriptionUtils subscrUtil = new SubscriptionUtils();
	ISubscriptionManager subscrMgr = subscrUtil.getSubscriptionManager(res);
	ISubscriptionList subscrList = subscrMgr.getSubscriptions(ctxt, res.getRID(), true);
}

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 01:16 PM

    The default Service Permissions for a folder are typically set to Subscribe (Myself Only). Try setting the user's Service Permissions to 'Subscribe' or 'Subscribe (All)'. Then the user should be able to read all the subscriptions.

    If you don't want to modify the user's Service Permissions, you can always use the cmadmin service user to retrieve the resource and read the subscriptions. Then there would be no permissions issues.

    Hope this helps,

    Fallon

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.