Questions tagged [security]

Salesforce user security is an intersection of sharing, user, Profiles, roles, roles hierarchy and object permissions.

Filter by
Sorted by
Tagged with
4
votes
1answer
29 views

Determine whether running user is logged in from within Trusted IP Range (from Apex)

I am creating a Login Flow that invokes Apex to do some processing, and need to determine whether the running (logging-in) user is connecting from an IP address whitelisted in our org's Trusted IP ...
0
votes
1answer
32 views

Is it advisable to use AMPscript as validation on a custom subscription center?

I have built a custom subscription center using SSJS and AMPscript and I was wondering if, beyond the fact that it works, if it's up to security standards. The center is just one cloud page which ...
0
votes
0answers
21 views

VisualForce Page - Detail Page Button - not displaying

I have a Detail Page Button on opportunity that open Visualforce page. From this Visual force page I can navigate through multiple Visualforce pages.That was working very well and without any changes ...
3
votes
0answers
45 views

Standard User with “Modify Metadata” fails to create active Picklist Value

What is failing here perfectly works for a SysAdmin user. I have a StandardUser with a permission set which grants him ModifyMetadata and calling this code creates the Picklist Value but leaves it ...
1
vote
1answer
39 views

Do you need Read access to an object to view its records in a report?

I believe if you have access to a report, record level access can be ignored and you can potentially see all records. Does this apply at the object level of a profile? So say a report is on Accounts, ...
0
votes
0answers
18 views

How exactly are the Einstein analystics external connectors secured?

I'm trying to connect einstein analytics to one of our local data servers. But network wont add the whitelist until they know how does this connection stay secure? And luckily for me not a single ...
0
votes
0answers
24 views

Can Code triggered by Chatter-Free user run in System mode?

I am exposing some code to Chatter Free user which modifies Account objects. I know that Chatter Free users are not directly able to modify them. But can my trigger code do it on behalf of them? As ...
-3
votes
1answer
41 views

Ability to the employee user to edit the records created by manager

I have 2 roles (Manager and Employee). Employee reports to Manager. Employees should be able to edit Case records created by manager. OWD on the Case object is Private. Created a criteria based ...
1
vote
1answer
22 views

Default Sandbox access situation with regards to users

So when a Sandbox is refreshed or created, everyone's email gets changed so that it has .invalid on the end. This seems to have the useful side effect of stopping users from logging in - when they ...
0
votes
0answers
31 views

How can I prevent unauthenticated users from downloading an attachment?

I have a community and internal links to attachments. They end with ...servlet/servlet.FileDownload?file={ID} When the user clicks the link, a window.open(fileUrl) is called. This prompts to download....
0
votes
0answers
17 views

How to hide records from Community users based on record type

I have requirement wherein i need to hide/show records from Community users based on record type i.e., Community Users should only see records of X object but only for the type of record type assigned ...
0
votes
0answers
57 views

View report records by queues not working

I have a custom report (Sales Orders with Work orders) but it doesn't filter out by queues. Both objects are on PRIVATE in the OWD and I have set the filter to the one in the print screen Any user ...
3
votes
1answer
36 views

Is Jest mandatory in LWC For appExchange app

As SF stated Jest is independent of Salesforce and doesn't run in web browser. Is it mandatory to write coverage/unit testing for Lightning Web Components and add in bundle while creating manage ...
0
votes
1answer
41 views

with sharing without sharing vs extension?

While going through manuals, it was mentioned Many times that apex classes will not consider security of logged in user but it will run in system mode and we should add custom controller extension to ...
0
votes
0answers
15 views

Security - See which user exported reports [duplicate]

Is there a way which I can know which user made export to report? Details about the user, date and time and the report name? (A free tool will be great). Thanks!
0
votes
0answers
13 views

How to secure API end points in custom activities?

I have a custom activity created for the journey builder. From a security point of view, how can I protect my REST endpoints? I know we can get the fuel token in the getToken method from postmonger. ...
1
vote
0answers
11 views

Using Protected Component for “Secret Protection” with Unlocked Packages

How do "Protected Components" (Custom Settings or Custom Metadata) function when installed from an Unlocked Package. I was hoping that I would be able to use as "Protected (Managed)" to store "...
0
votes
0answers
25 views

Need help on Salesforce Login discovery

Requirement-I want one of the dedicated profile to be redirected to seprate SSO flow and others needs to redirect to normal username/password flow. I have gone through Login discovery but it seems to ...
1
vote
2answers
56 views

How to temporarily Disable Access for Entire Org?

How to temporarily Disable Access for Entire Org? For all Internal and/or All External users.
1
vote
2answers
28 views

Remove password policies from profiles and have only one central password policy?

In our org, some profiles have their own password policy; these overwrite the general password policy. I would like to return to having only one centralized policy. How can I do that? I cannot find a ...
1
vote
0answers
82 views

CPQ - twin fields not working for certain profiles due to security setting

We are building a twin field in quote and order in the hope that the field value can be automatically copied into order. This is working for other profiles but not sales user since they don't have ...
0
votes
1answer
89 views

Update failed. INSUFFICIENT_ACCESS_OR_READONLY, You do not have the level of access necessary to perform the operation you requested

Background I have created a custom upload component based on this but using ContentVersion rather than Attachment. This custom upload component is being used on a public community page and has an ...
2
votes
1answer
44 views

How do guest communities allow access to detail pages?

Do communities evaluate the Record requested when determining if a page should be accessible? So we have a guest community, which we share some accounts to, for varying purposes. For some childA and ...
0
votes
1answer
32 views

Able To Delete Sobject Even if No permission for User

I have an Invoice Object inovice1, A profile sales1.Profile sales1 have no crud permission for invoice1 object not even read. Also OWD for Invoice object is set to private.Still I am able to insert,...
4
votes
1answer
71 views

Security Question AuraEnabled Dynamic SOQL

Let's say I have an Apex Class like this: public with sharing class AuraUtils { @AuraEnabled(cacheable=true) public static List<SObject> databaseQuery(String queryString){ List<SObject&...
0
votes
1answer
82 views

JWT Bearer flow vs. Username+Password flow in server-to-server integration

Official documentation and some SFSE answers advise against the use of Username + Password flow (Resource Owner Password Credentials Grant in oauth). The JWT Bearer flow is also recommended as a ...
1
vote
1answer
51 views

Sharing of a junction object

What access would a junction object have if one master object has read-write access while the other master object has read access through the sharing rules with organization-wide defaults private for ...
0
votes
0answers
32 views

Can we give user permission to add Notes & Attachments even user's profile has Read only for that object

I have a below setting for the object. ORG wide defaults- Private User's Profile - Read, View All Can I have user to add notes and attachments despite the fact he can't edit object. Thanks
4
votes
0answers
21 views

Calling the UI Api from a community with a custom domain name - getting sun.validator exception [duplicate]

Context: we're using the UI api to get some Record Type dependent picklist values back. This is happening in a community context. In the lower environments (dev, QA) this works without issue. The ...
2
votes
1answer
25 views

Custom Meta Data - Hacking security

Is it secure to set as custom meta data, for example, Credit card details or any other sensitive data? Is there any existing option to encrypt this data ?
0
votes
1answer
60 views

Getting error while adding a trusted site

I am adding some markup in "Head Markup" section of Community Builder(Settings --> Advanced) that references resources from 3rd party websites. Thus, SFDC gives me CSP violation warning in the markup. ...
0
votes
0answers
31 views

Uploading CA-Signed CRT to Salesforce?

I have an existing CA-Signed Certificate (CRT) given to me by my client, and it is needed to be able to make callouts to their external system. I have not found a way to be able to upload a CRT to ...
3
votes
1answer
70 views

Does Case-Insensitive Deterministic Encryption support SOQL LIKE and STARTS WITH statements?

The current Salesforce documentation states that deterministic encryption only supports exact, case-sensitive matches. This is why comparison operators that return partial matches aren't supported. ...
0
votes
1answer
19 views

How to restrict viewing of files and attachments to owner?

We have some sensitive documents which are uploaded as attachments to contact records. We want to restrict viewing of these documents to only the owner of these records. how can we achieve this?
0
votes
0answers
18 views

why a field in the report it shown as id?

I got the same report in internal user and in community user and country relationship its shown as country name with internal user and its sown as id for the community user.
0
votes
1answer
27 views

Account Sharing

I have a user in a role. How do I limit them to viewing the accounts of those below them by Type? Account Type = In Process Client, Active Client and Inactive Client. I've Set up their profile to be '...
0
votes
1answer
130 views

lightning:datatable row action being blocked

I have a 3 row actions for my datatable row. For some reason it is being block and console is saying it is a security error. I am not sure why error is occuring as I am just doing an alert. Here is ...
0
votes
1answer
20 views

Setting Different Permission For Record Owners

I am bit confusing on security part of salesforce. I have a situation where certain fields of an object X has to be disabled for a profile P. But the users in the same profile P, if they are the ...
0
votes
0answers
9 views

Update how Connected App appears in Account Activity

I have setup a Connected App that polls (from a backend server) for updates to a few objects at a set interval. I've noticed that its activity is made to look suspicious in the Account Activity panel ...
3
votes
0answers
28 views

Password policies remain after deleting profile?

I deleted a profile via the Metadata API, and it did not delete its associated password policies. I cannot find the policies anywhere in the UI, but when I pull from production (or any sandbox ...
0
votes
0answers
26 views

Can you deploy transaction security policies

Is it possible to deploy Transaction Security Policies using change sets? These policies are part of the Salesforce Shield Event Monitoring product. Each policy is required to have a user in the "...
0
votes
1answer
69 views

Child Aura Component not Loading for Some Users

Strange situation. This code works perfectly for me, but does not load for some users. I have searched permissions and security on Aura bundles, but cannot find what I need. Here is the code. The ...
0
votes
1answer
410 views

Refused to display 'https://www.salesforce.com/de/' in a frame because it set 'X-Frame-Options' to 'sameorigin'

I created VF page (or also to see the VF page inside a lightning component). I added an apex iframe with src="https://www.salesforce.com/de/" (or any other source) from salesforce apex iframe guide....
1
vote
1answer
615 views

Blocked by CORS policy: No 'Access-Control-Allow-Origin' header on the requested resource

I am trying to use a Google Charting library inside a Lightning Aura Component. Component <aura:component implements="flexipage:availableForAllPageTypes"> <ltng:require scripts="{!$...
1
vote
1answer
419 views

Enforce Field-Level Security Permissions for SOQL Queries WITH SECURITY_ENFORCED (Confused )

What is the need of WITH SECURITY_ENFORCED? Only benefit is minimal development experience with security and to applications where graceful degradation on permissions errors isn’t required. If ...
1
vote
0answers
20 views

How is consumer secret key adding security to Oauth 2.0? [duplicate]

I am trying to understand what additional security the the consumer secret(client_secret) for OAuth 2.0 provides. If one want to avoid using the consumer secret when authenticating you can use the ...
0
votes
1answer
58 views

Disabling download attachments to guest users

I would like to disable the possibility to download and read attachments to guest users of my community by requesting them from https://<salesforce-url>/community/servlet/servlet.FileDownload?...
0
votes
1answer
24 views

Cannot grant permission to edit Roll-up summary or formula fields

I am trying to give a profile edit access to a Formula field and Roll-up summary field, I did so with metadata like so: <fieldPermissions> <editable>true</editable> <...
1
vote
2answers
136 views

How to allow edit access to for certain record types only

I need all user to be able to see all opportunities. However, Department A should only be able to edit opportunities assigned to 3 record types (x,y,z) and Department B should only be able to edit ...
0
votes
0answers
29 views

How is this Authentication Option called and how can I implement it?

Recently I was working within my Salesforce Sandbox and when I switched to the Sandbox version of the application, Field Service Lightning, the authentication platform below appeared. I'm interested ...