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
0
votes
2answers
17 views

Grant permission to Lead object

I need a specific profile to be able to view Leads. But the Lead object is not visible under that profile. Which permission do I need to enabled. Lead object is available under System Admin profile.
0
votes
1answer
28 views

Give User Customize Applications permission

I am trying to give one of my users the ability to assign values in field dependencies. I believe that the permission they need to do this is "Customize Applications" however i can't seem to ...
0
votes
1answer
21 views

How give two users with different profiles and roles the ability to edit some fields but prevent all other users from editing the field(read only)?

How to give only two users with different profiles and roles the ability to modify some fields but prevent all others should have (read only)? I would like to avoid creating a brand new permission ...
6
votes
1answer
119 views

LWC custom permission error in subscriber org: Invalid module id “MY_NAMESPACE__My_Custom_Permission” for type “customPermission”

I'm trying to access a custom permission in a Lightning Web Component. This is the js code in my managed package development org: import { LightningElement } from 'lwc'; import hasCustomPermission ...
0
votes
0answers
23 views

How to fetch Custom Permissions assigned to an User [duplicate]

I need to fetch all the custom permissions assigned to an User. The FeatureManagement class only provides the method to check if User has any specific custom permission assigned or not. Thanks!
1
vote
2answers
72 views

SessionPermSetActivation doesn't work according to specification

There is an issue with implemention of the following feature : https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_sessionpermsetactivations.htm In attempt to utilize the ...
1
vote
1answer
163 views

Why did my lightning components stop showing up on my record pages in my scratch org after including my namespace?

I am using custom permissions to control when my lightning component appears on a given flexipage record page. The intent here is to make it easy for an admin to use a UI that I made to toggle ...
0
votes
1answer
39 views

Opportunity Validation Rule on Stages and CloseDate

My validation rule when Stage Name is = Closed-Won I want no user will be able to update to change the Close Date expect users who have this custom permission $Permission....
3
votes
1answer
98 views

Fine-grained app licensing using FMA and Permission Set Groups

Salesforce.com own apps are licenced using a fine-grained hierarchy of user licenses and add-on licences where each license has costs and restricts what I can do in an app. As an ISV selling Managed ...
3
votes
1answer
119 views

How to scale FMA Feature management toggles

I'm thinking about leveraging the Salesforce FMA and Feature Management toggles to allow more fine-grained user permissions in my Managed package app on the AppExchange. When looking at the specs I ...
0
votes
1answer
127 views

Move permission set assignment in different tier using ANT

I have created custom permission and added it to newly created permission set and assigned users to that permission set. I was able to move Permission set and Custom Permission file from DEV to ...
0
votes
1answer
31 views

How make restriction for app from appexchange?

Context of problem: I installed app from appexchange and there was I had to allow for access to my data in my org. Question Do you know how I can make restriction access to data using in the app? ...
3
votes
1answer
93 views

How to programmatically determine in APEX if a custom permission is assigned to a given permission set?

Background: I am trying to make a UI that will simplify managing assignments of some custom permissions against permission sets in my managed package. This section of the managed package would only be ...
3
votes
1answer
65 views

What is the permission that governs reading Custom Permissions? [closed]

Our managed package has some custom permissions that help provide an elevated set of capabilities to some users. We have recently run into an issue with some people seeing this error message: "Read"...
3
votes
1answer
184 views

Accessing Custom Permission from Managed Package

I'm trying to check the User assigned Custom Permission from a Managed Package. The Custom Permission and the Permission Set are not part of the package, but in the subscribers Org. Currently I'm ...
1
vote
3answers
189 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
68 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
60 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
32 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
139 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
352 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
695 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?
2
votes
2answers
422 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
126 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
274 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 ...
13
votes
3answers
9k 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
302 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
205 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
551 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
658 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
324 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
435 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
2k 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
203 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
49 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
687 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
327 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
378 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 ...
7
votes
1answer
7k 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.
4
votes
1answer
367 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
77 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 ...
5
votes
2answers
3k 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
104 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
32 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.