Dynamically applying restrictions to a universe?

Hi,

I currently have a single universe for one client as a trial, and am now looking to setup multiple universes to cover our other clients.

My problem is that the involved number of tables / users is beyond the realm of manually applying restrictions. Is there a standard approach to dynamically apply restrictions? Or any known solution? I have been unable to find a solution so far, and have only found one person asking the same question.

To summarise: I am looking for a way to apply automate restriction creation for my universes. I would prefer a solution in Java if there is a choice, but any solution or suggestions would be much appreciated,

–Pulseguy.


pulseguy :australia: (BOB member since 2009-12-06)

Hi and welcome to BOB.

If you are trying to have many people access one universe, but you only want certain people to be able to create reports from that universe, then you can accomplish this by setting the appropriate rights within the CMC. Bearing in mind that you need to be on XI3.1 or later for this to work.

But there are many ways that you can configure security. If what I have mentioned is not what you are trying to achieve, can you please supply a little more detail as to your exact requirement.


plessiusa :netherlands: (BOB member since 2004-03-22)

Hi Plessiusa,

Part of the problem was a lack of knowledge of the history - I was looking for a way to apply restrictions - but up until recently they have been going under the name overloads, and all the API methods use that name (overload class, methods like applyOverload etc).

I am using xi 3.1, and slowly stumbling my way through by trial and error by google and the bo interface definitions - is there a good resource of sample code to use? The worst problem I have at the moment is when I do find a piece of code, it uses an instance of an unmentioned type, or an import that isn’t shown.

Back to topic, my goal is to apply all universe restrictions(overloads) via the API, rather than via the universe designer - as while my tables may be consistant(at least I hope), the usergroups and users will definately change for each.

I have made a fair bit of progress learning how things work today, and now have restriction(overload)'s being created and assigned to groups/users.
My current brick wall is determining what object holds the priority order that group permissions are applied in.


pulseguy :australia: (BOB member since 2009-12-06)

The method getUserGroupOrderedIDs of IUniverseBase interface will give you the priority order but I don’t think you can do much with it as it is read-only. I do not know of a way to change priority via SDK.

Rachid


rachidb :morocco: (BOB member since 2006-07-06)