Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Granting Data Access rights to Data Connections in .NET

Granting Data Access rights to Data Connections in .NET

Granting Data Access rights to Data Connections in .NET

Has anyone tried to grant "Data Access" rights on a Data Connection to an ObjectPrincipal using the .NET SDK?

ObjectPrincial.Rights has 3 methods: Add, AddCustom, AddSystem of which none seem to be documented as to assign the Data Access rights.

Can anyone help please?


RE: Granting Data Access rights to Data Connections in .NET

I managed to add the Data Access right using the AddCustomRight method

ObjectPrincipal.Rights.AddCustomRight(21495815, "MetaData.DataConnection")

I do not know if 21495815 is system specific but identified it having looked at known ObjectPrincipals who had the right set. All this seems to be undocumented within the SDK.

RE: Granting Data Access rights to Data Connections in .NET

What version of BO and the SDK are you using? If it's 3.1 or older, this is probably the only way to do this. If it's 4.x, your best bet is to create a custom access level that includes this right. Then do the following:

1. Use InfoObject.SecurityInfo2.ExplicitPrincipals to get the ExplicitPrincipal (old "ObjectPrincipal")
2. Add the ID for the custom access level to the ExplicitPrincipal.Roles property.

In general, it is best practice in BO security to use access levels instead of explicit rights. And the available rights may change from version to version of BO.


DecisionFirst Technologies - Seven-time SAP BusinessObjects Solution Partner of the Year

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close