function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rajesh PunabakaRajesh Punabaka 

How to assign user permissions through apex

Hi, This is Rajesh, I have to create two dashboards dynamically and assign those two dashboards with two users.

Each user can able to see only one dashboard only. How can i acheive this.

 

Thanks & Regards.

Best Answer chosen by Admin (Salesforce Developers) 
vbsvbs
Try this link:
http://www.salesforce.com/us/developer/docs/api_meta/

Have a look at retrieve and deploy functions. The basis here is that the dashboards have already been setup on one environment.

All Answers

souvik9086souvik9086

I think this is not possible through apex.

 

If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.

Thanks

Rajesh PunabakaRajesh Punabaka

please give me some idea how to acheive this.......!

vbsvbs
Have you had a look at the Force.com Migration tool based on Ant? The alternative is Metadata API on which the ant commands are based. Just have a look at online documentation and let us know if you need assistance with something specific.
Rajesh PunabakaRajesh Punabaka

Can u please send any related document on regarding my issue, because i dnt have any idea abt metadata api,

pls help me on this.

 

 

Thanks & Regards.

vbsvbs
Try this link:
http://www.salesforce.com/us/developer/docs/api_meta/

Have a look at retrieve and deploy functions. The basis here is that the dashboards have already been setup on one environment.
This was selected as the best answer