Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [custom-permission]

Custom permissions let you define access checks that can be assigned to users via permission sets or profiles, similar to how you assign user permissions and other access settings.

Filter by
Sorted by
Tagged with
1
vote
3answers
47 views

Control access exclusively to custom metadata screen

I am wondering what is the way to get edit access to a specific custom metadata using PermissionSet in UI. Here is what i have done: Setup -> PermissionSet-> MyPSName system permission -> checked ...
3
votes
0answers
28 views

Custom Permission in Validation Rule evaluating as Null when assigned

We have a requirement to prevent changes to a contract record once active unless the you are a contract admin, which can span multiple profiles. I'm trying to accomplish this by using a custom ...
0
votes
0answers
29 views

Could we are able to update System permission set of Profile via apex code

I am trying to update System Permission set of Profile by apex code which is already assigned to an active profile. Is it possible to update? if yes, Then can someone please suggest how do I do that? ...
0
votes
2answers
31 views

need to provide one permission to users

I just wanted to add one permission to users (Sales(standard__LightningService) the current approach is to create a permission set and assigned connected app to PS.is this good for only one ...
0
votes
1answer
20 views

Profile access on Custom Fields in Einstein Analytics

In Einstein Analytics, to see what field permission a User has on a Custom Field via Permission Sets can be achieved using combining FieldPermissions object and PermissionSetAssignment Object. But, I ...
0
votes
0answers
156 views

Using Custom Permissions to restrict picklist values to specific users

My goal: Using Validation Rules and Custom Permissions to restrict accessibility of specific values seen in the Account Type picklist to be available only to specific users. I have the custom ...
0
votes
1answer
271 views

Getting User custom permission in Visual Flow

I need to check if the running user has a specific custom permission in their profile within my flow logic. How can I check that?
1
vote
2answers
168 views

Can I use $Permission in a Workflow Rule?

I've checked the documentation (and the stack exchange) and have only been able to find references to it being used on: Validation Rules Visualforce Process Builder Can I also use it on a Workflow ...
0
votes
1answer
56 views

Custom Permission is not recognized by Visualforce in the Tesing Org [duplicate]

I have a custom permission in my Managed Package. I use it in my Visualforce page to allow certain features for users that have this permission. <apex:commandButton value="Register Connection" ...
3
votes
1answer
199 views

Javascript Static Resource access Custom Permission

we recently decided to refactor coding which uses hardcoded Ids and Names for permission checks on profiles. We want to use custom permissions, which then can be added to permission sets and ...
7
votes
3answers
4k views

How can I Efficiently Check if the Running User has a Custom Permission?

Is there any way to check in Apex if the running user has a specific Custom Permission? The best I know of using available methods involves two separate SOQL queries: public static Boolean ...
2
votes
0answers
232 views

Async SOQL Query - Insufficient_Access

I'm trying to learn Async Soql, and messing around with simple test scenarios. I've reached a block where I'm just trying to move the name of Account and create a new Custom Object with that name. I'...
1
vote
0answers
125 views

Any workaround for enabling create opportunity splits for users of lower role hierarchy than the record owner?

Just saw in the ideas that a functionality is not available till now, that a user having lower role hierarchy than that of the opportunity owner, is not having access to the "Edit Opportunity Splits" ...
1
vote
1answer
274 views

Accessing Custom Permission Through Javascript

In my dev org, I could do if('{!$Permission.Manage_Advanced_Org_Settings}'){}, however, I tried to package and install in another org and got 'Manage_Advanced_Org_Setting does not exist. Check ...
1
vote
2answers
437 views

Lookup filter with permission set criteria got error Field $Permission.XXXX does not exist. Check spelling

I want to filter user lookup with criteria: only users have permission set name 'manager_user'. So to achieve that, i do as follow: Create a permission set name 'manager_user' Create a custom ...
1
vote
1answer
272 views

Restrict user to access admin Visualforce pages

In our managed package, we have Visualforce pages that are "public", but there are also some configuration pages that we want to make available only to "admin" user. In other word, we want to be able ...
3
votes
1answer
312 views

Custom Permission assign to all users by default

I'm working on creating a Custom Permission within a new Permission Set in a beta managed package. My Custom Permission: <?xml version="1.0" encoding="UTF-8"?> <CustomPermission xmlns="...
1
vote
1answer
1k views

Using custom permissions in a formula field

My aim is to create a formula field on user object which validates that a user has been assigned to a particular permission set or not. Step1: I created a custom permission called ...
-1
votes
1answer
162 views

SOQL Query within controller Custom Permission

I'm trying to query what custom permission the current user has. I will have to query this in a few places so I was trying to avoid putting it in every single controller class. Maybe putting it in ...
0
votes
2answers
37 views

Open access to a particular user for a particular field of a particular record

A profile doesn't have access to any of the 5( Let's say A,B,C,D,E) fields in the object, however I have to allow a user in the profile to edit field A, that too for certain records. Is it possible? ...
0
votes
0answers
15 views

Restricting access to different packages for contractors

Our company is using AppExchange PackageA and AppExchange PackageB that provides similar functionalities and we have signed up MSA with both companies for enhancements. So, developers from PackageA ...
4
votes
1answer
372 views

How do I limit access to a report folder to certain users only?

I need to have a report folder that is accessible to management only, but can't seem to figure it out. We have many folders for various sections of the business, and all users have access to public ...
0
votes
2answers
136 views

Custom permission vs Hierarchy custom setting

We have some scenario where we need to skip validation and workflow rule to specific profiles.Since these set of profiles may change frequently (SYSADMIN can add/remove profile names to skip). To ...
0
votes
1answer
281 views

Can a Force.com - Application Subscription license user create workflows? Is the “Customize Application” permission available to that license?

Can a Force.com - Application Subscription license user create workflows? Is the "Customize Application" permission available to that license? Apparently, that permission is necessary for a user to ...
5
votes
1answer
4k views

SOQL to find All Users with a Custom Permission

I was looking for a little help to find all users with a particular Custom Permission assigned to them, either via Profile or Permission Set.
3
votes
1answer
304 views

Checking if a certain custom permission is enabled in a Profile

Is there a way to programmatically figure out whether a certain custom permission is enabled in User profile? The problem that I'm trying to solve – is that I need some kind of a flag for a small ...
1
vote
1answer
62 views

Check Which Visualforce Pages Accessible?

<EDIT> My use case: Rather than showing "An insufficient privileges message" after clicking on a button, I want to hide/show the button using the apex code whether to display the button based ...
3
votes
1answer
2k views

Getting all Users and their Custom Permissions

tl;dr Want to make a SOQL to return all Users and there (custom) permissions Hi there I've just started using SF, so bare with me if this is very basic. One of the usages of salesforce we're ...
0
votes
2answers
72 views

Visualforce: Issues with $Permission when rerendering

Has anyone else experienced issues with permission based elements on visualforce when rerendering a section? For example I have a section that for administrators will provide a link but for common ...
0
votes
3answers
30 views

Custom Object Look up Field Permission

I have two custom object Facility__c and Groupage__c. Facility is parent and Groupage is child. So, Groupage object look up field Facility__C. On a VF page, I am not able to see Facility__c field of ...
1
vote
1answer
1k views

Make Custom link visible only to specific group of users

I want to show custom link(visualforce page) on Home page available to only to specific group of people.I don't see an option to assign it via permission set.