Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
25 views

Need to get permission set from user if the permission is vew Setup

Requirement- I have a user and need to check all the permission set and if any of the permission set is having PermissionsViewSetup then the boolean value to true . I have used below query - SELECT ...
0
votes
0answers
36 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
117 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
1answer
48 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
39 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
166 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
2answers
2k 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
180 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
85 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
153 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
318 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
217 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
227 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
727 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
125 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
36 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
14 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
174 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
1answer
101 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
216 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
217 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
51 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
69 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
949 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.