Questions tagged [profile]

A profile contains user permissions and access settings that control what users can do within their organization.

Filter by
Sorted by
Tagged with
45
votes
3answers
7k views

Salesforce bug enabled “Modify All”

Apparently, Salesforce has released a patch that implicated "Modify all" to be enabled for every single profile in some orgs. This includes standard profiles and custom as well. Yes, even standard ...
25
votes
10answers
10k views

Can I compare Profiles?

We have many profiles in our org, and I suspect that some of them are redundant because the person who originally set them up didn't seem to understand the purpose of Profiles (confusion with Roles, ...
24
votes
4answers
11k views

Remove Record Type from Chatter Profiles

I want to remove the Record Type applied to a Custom Object. There will be no record types at all. I cannot remove one of the record types because its set to the default for several profiles (in fact ...
21
votes
3answers
10k views

Finding if which users have a record type available to them using SOQL

I would like to be able to execute a SOQL query that will allow me to see which users have access to a certain record type for a certain object. For example, if I have a case record type called Phone ...
20
votes
1answer
10k views

Force.com IDE profile deployment - You cannot deploy to a required field Object_Name__c.Field_Name__c

The following error pops up when I am trying to move all the meta data from one environment to another (with Profiles). You cannot deploy to a required field Object_Name__c.Field_Name__c Upon ...
18
votes
1answer
4k views

Best Practices for Managing Org Profiles & Permissions

Are there any books, tutorials or whitepapers out there that recommend a strategy how to cope with the complexity of profiles and permissions in big Salesforce orgs? You find fragments of that in ...
17
votes
1answer
9k views

Changing default record type for ALL profiles

I just spent 20 minutes changing a custom object's default record type for every profile that we have. For future reference, is there a way to change this across all profiles?
15
votes
1answer
3k views

When to add apex class permissions to a profile

The apex class permissions are a bit confusing to me. For example, classes used by page controllers do not need to be added to the profile. Can anyone give a complete list of scenarios on when you ...
14
votes
4answers
1k views

Know if is a custom profile via API

Is it possible to know if a profile is custom via API? Like an attribute "profile.isCustom".
12
votes
2answers
7k views

Deploying Profiles / Permission Sets that include object & field permissions for Managed Objects

Anyone know if it's possible to deploy profiles/permission sets via Eclipse or an Unmanaged Package that contain object & field permissions for 3rd party managed objects? I'm trying to deploy a ...
12
votes
2answers
808 views

Supported solution for querying standard profile names for multilingual user base?

Has anyone figured out how to call the standard profile by name and still be language agnostic? Standard profiles get translated at run time and all options I can think of seem to be workarounds and ...
11
votes
2answers
2k views

How do you Apex Unit Test Object(CRUD)/Field(FLS) Permissions in an Org Portable manner?

Specifically, how might one get an org portable Apex Unit Test User that DOES NOT have READ access to Accounts? Creating a Test Permission Set that DOES NOT have READ access to ACCOUNTS and assigning ...
10
votes
5answers
9k views

Exclusive differences Profiles vs permission sets?

I understand, the differences between Profiles and Permission Sets. I just wanna ask are there some configs that make Profile or Permission Set unique. Are there things that could only be done via ...
10
votes
2answers
2k views

Determine custom profile

How to determine in APEX whether specific profile is custom or not? There is a checkbox on a profile page that says "Custom Profile", but I couldn't find any field on the Profile object to be ...
10
votes
1answer
2k views

Unit-Testing Sites Permission Involving a Sharing Rule with Unit-Test Created Data

We currently have a Salesforce Site, and we're trying to add some unit-tests, around permissions and sharing rules that need to be set. We've smoke tested everything via the UI, and permissions appear ...
9
votes
5answers
8k views

The user license doesn't allow the permission: SubscribeToLightningReports

Currently i'm not able to deploy change set from and to sandboxes in the spring17 release with force.com profiles added. This is only due to the "export reports" option with is ticked on both side (...
9
votes
2answers
5k views

How can I upload/change user's profile image programatically or via API?

I know, that there is no way to mass-upload these images via dataloader as described here can I upload user's profile image via data loader https://success.salesforce.com/ideaView?id=...
9
votes
1answer
5k views

'Guest' vs 'Guest User License' in sites?

When I first set up a site, I am always given the option to have the the type of new site be 'Guest' or 'Guest User License'. I have not been able to find any documentation on what the difference is. ...
8
votes
3answers
5k views

Available Record Type by Profiles

I am trying to find out the available record types for each object for an entire profile. Is this possible to do? I would like to compare who has access to record types.
8
votes
1answer
16k views

INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: [] on opportunity

I have created an object named as "Component" which has Master-Detail Relationship with Opportunity Object. On Opportunity we have a button says "Create Component", when user clicks on it it takes ...
8
votes
4answers
2k views

Can including a profile in a changeset remove a permission/FLS?

Can including a profile in a changeset remove a permission/FLS? This is one thing I have always been hazy on, but I believe when we include a profile in a change set it only makes changes to the ...
8
votes
2answers
953 views

How do I distribute Record Type Assignments when packaging Permission Sets?

I'm trying to create a Managed Package that relies entirely on Permission Sets. No profiles! In my head, Profiles are really "owned" by each org administrator. One needs serious justification to ...
8
votes
1answer
1k views

Updating profile via Metadata API from Apex gives weird error

I am trying to automatically enable pages for profiles (profileApexPageAccess doc) via Metadata API. Here is my method: public static void updateProfileAccesses(String profileName, List<String> ...
8
votes
2answers
696 views

Ignore user context while sending SingleEmailMessage

Can we send SingleEmailMessage(s) under admin context and ignore current user sharings and profile access. Details: - visualforce email template is related to object B which is not available for users ...
7
votes
3answers
1k views

How can I get LastModifiedbyName in Profile/

I am creating a table with all profiles and users who last modified the profile. Profile p = [select Name, lastmodifieddate, lastmodifiedbyId from Profile]; LastModifiedByName column is not here......
7
votes
4answers
1k views

How can I deploy objects without their profile permissions?

I would like to deploy a bunch of objects from a sandbox to Production. However, I am not yet ready to give permission to the users to use these new objects. Therefore, I do not want to deploy ...
7
votes
2answers
588 views

Apex Returns Different Result From Developer Console

I have a custom profile called MyCustomProfile. When I want to get profiles in my Apex class I don't get System Administrator. But in Developer Console, with same code, I can get both of them. ...
7
votes
1answer
975 views

Updating Profile - using metadata

I needed to first create some Record Types for some custom objects using Metadata. After doing those, I was to upsert the records on those custom objects using the RecordTypeId. I noticed one thing ...
7
votes
1answer
3k views

Salesforce query on profile not working on user language change

I have a query on profile like profilename = [Select name from profile where id=:userinfo.getUserprofileid ].name Now I have a check in VF page like profilename == 'System Administrator' . this ...
7
votes
2answers
4k views

Getting Page Layout associated to a Profile/RecordType

Is there an object we can query to know which page layout is associated to a particular Profile/RecordType match?
7
votes
1answer
3k views

Insufficient Privileges while impersonating an User in Salesforce

I have started to test my Managed app through different user Profiles. Manage User -> User_1 -> [Login] link near each user allowed me to impersonate any user Profile. This is a cool feature ...
7
votes
1answer
405 views

Why is there a big difference in profiles returned by “sfdx force:source:pull” and “sfdx force:mdapi:retrieve”?

I have a project with a scratch org created using some profiles that date from the MDAPI days. The profiles look good in the org. Having added some record types, I expected: sfdx force:source:pull ...
7
votes
1answer
953 views

Profile Field Level Security missing in XML when retrieve profile changes from scratch org

In our DX project we maintain 4 profiles (3 custom and the System Administrator profile). When a scratch org is created I can push the project and everything deploys correctly including the profiles ...
7
votes
1answer
706 views

Updating Profile for Record Types: using Metadata API

So far I'm able to create the Record Type for an object using Java. For the object requiring only 1 Record Type using Java: (the upserts are going fine) - If I'm to create only one record Type per ...
6
votes
5answers
6k views

Executing Apex code in controller only for specific profile

How to execute Apex code in controller only for specific profile, like System Administrator? So that when other users visit Visualforce page, the code block would not be skipped?
6
votes
3answers
5k views

How would sharing rule work in the below scenario

Suppose i create a new object called "XXXX". Now profile called "AAAA" doesn't have read, create, edit permission on it. Q1: What would happen if I create a record of object "XXX" and share it with ...
6
votes
2answers
176 views

Profile field visibility

If two users are sharing same profile, how can we make one field visible to one user and hiding it from other user.
6
votes
1answer
1k views

Listing of All Standard Profiles and their Metadata API Names

What is a listing of all Salesforce standard profiles as they relate to the Metadata API? The names do not match the user interface in Salesforce. When performing a bulkRetrieve of all profiles in a ...
6
votes
1answer
4k views

Find out the default record type of any Object in Apex

I've to find out the default record type of an Object so that I can use in Apex to insert/update records. Found out that it is at the user level(user profile based). Is there any other way which I ...
6
votes
3answers
8k views

how are custom object permissions set for standard profiles?

I'm looking at the std profile, contract manager, and for some custom objects in our org, they have CRUD privileges for a bunch of objects and no access whatsoever to a bunch more. What drives the ...
6
votes
2answers
1k views

profile object permissions for a detail record

When readng through trailhead salesforce I came across a line which I am unable to digest. The line says - "You can’t set profile object permissions for a detail record". What does this mean? In my ...
6
votes
2answers
10k views

Enabling SAML SSO: where is the “Use Single Sign-On” permission?

We've set up Single Sign on with SAML. Our IdP is OneLogin and using their link, we are able to connect. We now want to disable password login for some users in Salesforce. Salesforce's documentation ...
6
votes
2answers
1k views

Limit who can add/edit specific contact roles

I have a feeling I know the answer is No, but wanted to check if anyone had any luck or quick workaround to my issue. We use Account Contact Roles, but we want to allow specific profiles to add/edit ...
6
votes
2answers
314 views

System.runAs not reflected in trigger context

I have a test class, with this code System.debug(UserInfo.getProfileId()); Profile p = [SELECT Id FROM Profile WHERE Name = 'Standard User']; User u = new User(ProfileId = p.Id, ...); System.runAs(u)...
6
votes
1answer
683 views

Show information on visualforce page only for certain profiles [duplicate]

I've added a profile recently and I want to display an extra button for that profile on the visualforce page. I've tried a couple of things but it doesn't seem to work. Here is what I've tried: <...
6
votes
1answer
884 views

APEX: access profile by name in known/predictable language regardless of running user's language [duplicate]

It was recently brought to my attention that for our clients, SalesForce translates profile names (such as "System Administrator") which causes errors when the Apex code attempts to check profile ...
6
votes
2answers
811 views

Using SFDX For CI with Communities, how to activate Community to get Guest UserLicense

I am working on a new implementation of Communities for a project using SFDX. I pulled in the relevant files related to hosting a community but when I do a sfdx force:source:push I get an error on the ...
6
votes
1answer
1k views

Remove IP range from System Administrator Profile

I have added IP restriction to one of my dev org but now I am not able to login into that salesforce org. It seems that my IP address has been changed and because of this I am facing the issue. Can ...
6
votes
1answer
732 views

“Cross Org Data Proxy User” has attached itself to my App

I cannot delete my Custom App because a System Profile has it selected as the Default App. As part of Cross-Organization data sharing there is a new Cross Org Data Proxy User that appears amongst my ...
6
votes
0answers
275 views

What determines the permissions for a profile deployed with change sets?

Question For a new profile created in a sandbox and deployed with a change set it'll carry with it the settings for all other metadata in the change set plus all settings that aren't specifically ...