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
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 ...
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 ...
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
2answers
4k 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=...
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.
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 ...
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 ...
7
votes
2answers
3k 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?
2
votes
3answers
5k views

Can we deploy PROFILES alone from one sandbox to another?

Can we deploy only profiles from one sandbox to another? Thanks
0
votes
1answer
110 views

Permission Deploy Change Sets Error When Saving a Profile

I have profile "Test". When I click Edit and then Save I get the following error message: This is just a part of a huge error message, which lists all problem objects. The last part of this message ...
0
votes
1answer
22 views

Disabling access to all tabs except one on a profile for a particular set of users

I have a set of users, who need access to one single tab or object on the existing profile. How can i do it with out of box functionality.
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, ...
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
759 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
2answers
1k 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 ...
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 ...
20
votes
1answer
9k 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 ...
10
votes
5answers
7k 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 ...
5
votes
3answers
4k views

Invalid parameter type error while deploying custom profile

We tried to deploy a custom profile from one dev org to another org using changeset. It fails on validation on the destination org and we get an error message invalid parameter type. Would any body ...
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".
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> ...
6
votes
1answer
854 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 ...
5
votes
2answers
2k views

Unknown User Permission(s): ManageSandboxes & ViewPlatformEvents

I am trying to deploy using ANT from one sandbox A to other sandbox B. The profiles are failing on the deployment with following error. system admin profile: unknown user permission: Managesandboxes ...
4
votes
1answer
1k views

Bulk Upload IP Ranges into Profile

Has anyone figured out how to bulk upload IP Ranges into a Profile? I haven't been able to find anything on this. Having a large amount of IP addresses to add to a profile is a pain, error prone when ...
4
votes
3answers
5k views

How to change profile licence type

Is there any way to change the Profile licence type by editing the profile? Is there any other way to change the profile licence without creating a new profile from scratch?
2
votes
2answers
4k views

How can I know Profile permissions on an object?

Suppose I have a profile PA_User and I want to know what kind of permissions(create, edit, view all, modify all etc) this profile has on Account, opportunity, PAUser (custom object) objects using APEX....
2
votes
3answers
7k views

How can i customize permission for Attachment as well as Note object in my custom profile

I have created custom profile which i am using for my customer portal users.How can i customize permission for Attachment and Note object?so that users can access attachment in customer portal.
1
vote
1answer
23 views

Modifying field access dynamically

I would like to know whether it is possible modify field access on a record based on criteria like "ownership" etc. For example, the date of birth field on account should be made accessible only for ...
1
vote
1answer
2k views

Query Object Access by Profile

I have looked at the documentation and it seems the best I can do is query ObjectPermissions for PermissionSet access. Is it possible to do the same for Profile instead of PermissionSet? THANKS FOR ...
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
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 ...
5
votes
1answer
659 views

where do we have userPermission “ AllowUniversalSearch”

While exporting the metadata of SystemAdminstrator Profile I am getting a user permission " AllowUniversalSearch" but not able to figure out from where can we set this permission as it is not visible ...
4
votes
1answer
1k views

How to access the “System Administrator” profile using Metadata-API via Apex (using MetadataService.cls)

I want to access the Standard "System Administrator" profile using MetadataService.cls (found here https://github.com/financialforcedev/apex-mdapi) Therefore I tried this MetadataService....
4
votes
3answers
1k views

Exposing the contract object in the customer portal

I have a customer portal where we expose different types of records to users who need to see only records that belong to the same Account as theirs. The portal is built using Visualforce pages and a ...
3
votes
2answers
43 views

Get Standard User Profile Id no matter what the users language is

When a (scratch) org is created by a non-english user this query will have no results: [SELECT Id FROM Profile WHERE Name='Standard User'] Instead you have to use a localized name (here in German) [...
3
votes
4answers
12k views

How to give an access on an object to All the profiles which are in system

I have around 200 profile and i have to give them Read,Create,Edit,Delete,ViewAll and Modify All rights on a particular Object say "Employee". I don't want to edit all 200 profiles one by one and ...
3
votes
2answers
896 views

Login IP ranges list

How do I get a list of the Login IP ranges specified in each profile of my org. The list that is obtained from the data loader from LoginIP obkect doesn't seem to give results for each profile.
3
votes
1answer
102 views

What determines the default FLS settings when creating a new field

In step 3 of the create new field wizard, you are presented with a page like this: Why do some of the profiles get default visibility and some don't? There is probably an extremely simple profile ...
2
votes
2answers
673 views

Unknown user permission: ChatterInternalUser while deploying the profiles

getting following error : Unknown user permission: ChatterInternalUser while i am deploying profiles. following the xml file : <types> <members>Accounting</members> <...
2
votes
2answers
121 views

Is there a way to stop an user from seeing an object except when obtained by apex?

I have a community user profile that will have access to a series of visualforce pages, ids will be passed as parameters. Is there a way for the apex pages to be able to get the data for the user ...
2
votes
1answer
85 views

When deploying just one field, the “View All Data” permission on the profiles is deployed as well… Why?

We are seeing some deployment-behaviour that we don't understand (nor expect / want). If we create a deployset using the Salesforce UI with just one field (Test__c on Case) and add all Profiles to ...
2
votes
1answer
2k views

how can i mass assign object record types to profiles in salesforce

Some new record types were created to a custom object,how can i assign them to n number of profiles instead of manually editing each profile.(The problem is there are around 85 profile that needs to ...
2
votes
2answers
864 views

INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY when subscribing role members to a record

I created a trigger that on a record creation (Custom sObject), subscribes all the createdBy role members to the record. This code seems to work just fine when executed by a sys admin, but it throws ...
1
vote
2answers
1k views

Restricting record level access in role hierarchy

If i set the OWD for Account as private and if i create a public group and add some users into that and create a sharing rule for giving read and write access to that public group then managers of the ...
1
vote
2answers
260 views

DML not allowed on Profile error message

I created a test using the following apex code: static testMethod void testProfile() { Test.startTest(); Task task = [select id, OwnerId from task where OwnerId = '00104']; Profile p = ...
1
vote
1answer
180 views

Query on FieldPermissions object is super slow

We have created VF page that shows the access to fields for all profiles and permission. This page runs supper slow. When we analyse the the code with developer console we realized that this issue is ...
1
vote
1answer
40 views

Need to change object permissions of standard profile-URGENT

I have Lead OWD set as Private. I have 5 users in Marketing User(std obj)..I need to give View All & Modify All permissions on lead object of this profile. How to approach.? Cloning marketing ...
1
vote
0answers
30 views

Reduce the Permissions of User

I have Lead OWD set to public Read/Write. I m creating new User with new profile..with Lead permissions as CRED(No view All,Modify All). I want this user not to see other lead records. How to ...
1
vote
1answer
1k views

Issue deleting object

I have a strange problem that I cannot figure out. I have a database model that looks like this: The A object is shared private in the org. User A creates record 1 and will become the ...