UrbanPro
true

Learn Salesforce Administrator from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Assigning One permission to multiple users automatically without any manual work.

Kiran
15/12/2016 0 0

Hi Friends,

I recently came across below new things I did in my project. Hope it helps you too.

Description :

How to Assign one permission set to multiple Users ? For example: If I want to assign ONE permission set to 200 Users without Manual assignment.

How To Do ? :

Step 1: Pull Salesforce 15 digit id of Particular Permission set.

   Ex: If below is the URL of Permission Set.

   https://na14.salesforce.com/0PSd00000013xrx

    Then "0PSd00000013xrx" is salesforce id. 

Step 2 : Pull Salesforce Ids of the Users for which you want to assign the Permission Set.

Step 3 : Create CSV file(as shown below) with List Users (i.e. User ID) in one column and Permission Set id in another clomun ).

Id

Permission Set ID

005d0000000aPznAAE

0PSd00000013xrx

005d0000000aQK4AAM

0PSd00000013xrx

005d0000000aQK5AAM

0PSd00000013xrx

005d0000000aWXVAA2

0PSd00000013xrx

005d0000000acTIAAY

0PSd00000013xrx

005d0000000ad7qAAA

0PSd00000013xrx

005d0000000azdvAAA

0PSd00000013xrx

005d0000000bRqgAAE

0PSd00000013xrx

005d0000000bb2yAAA

0PSd00000013xrx

005d0000000c5MYAAY

0PSd00000013xrx

Step 4 : Insert the .csv file using Workbench to "PermissionSetAssignment" object using below mapping.

Field

CSV Field
AssigneeId Id
PermissionSetId Permission Set ID

Now You will be assigned Permission Set to All the Users present in .csv file.

        

0 Dislike
Follow 0

Please Enter a comment

Submit

Other Lessons for You

Difference Between Insert/Update And Database.Insert/ Database.Update
insert/update Database.insert/Database.update Assume that you are inserting 100 records. If any one of the record fail due to error then entire operation will fail. None of the records will be saved...

What Is Batch Apex And Its Methods ?
1. We can call the apex code by creating object for the class (or) if the variables or methods are static then we can call with class name. Apex Code in the trigger will execute automatically for...

How To Schedule Batch Apex In Minutes/Hours?
To schedule the batch class in minutes/hours, in the finish method we should use System.schedule method which will take 3 parameters Job Name, Chrone Expression and schedulable class instance name respectively. ...

What Is SOQL And SOSL?
1. SOQL: Salesforce Object Query Language SOQL: Salesforce Object Query Language SOQL Purpose: To fetch info. from an object and related objects. We can write query on one object while querying...

Any one can become a Salesforce Admin or Salesforce Developer
There are many opportunities in Salesforce as every organization is moving towards cloud computing nowadays. Salesforce has introduced new features like Salesforce Lightining, Salesforce Wave Analytics,Salesforce...
X

Looking for Salesforce Administrator Classes?

The best tutors for Salesforce Administrator Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Salesforce Administrator with the Best Tutors

The best Tutors for Salesforce Administrator Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more