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 [userrecordaccess]

The tag has no usage guidance.

0
votes
1answer
26 views

How to provide access in bulk

I have created a custom object with over 50 custom fields but only system administrators have access to all the fields now is there any way I can provide the access to other profiles at once I can ...
1
vote
1answer
158 views

Login as another user without View setup and configuration permission

Can an user be given login as another user privileges without giving 'View Setup and Configuration' permission and 'Modify All Permission'? As the need is to do testing in sales force logging in ...
0
votes
1answer
27 views

Give delete access to records of particular users without 'Modify All' using apex

I want to give delete access to some set of users in certain condition to some records. I don't want to do this using profiles/permission sets. I want to achieve this using apex. Could anyone please ...
0
votes
1answer
43 views

Out of Office button

Scenario: I'm the manager and I have an employee. My employee was on a sick leave so I want to put a message on his/her user profile that this employee is on a sick leave. Problem: The problem is ...
0
votes
0answers
28 views

Identify the reason why a user has access to a record [duplicate]

UserRecordAccess tells you which records user has access to. But it doesn't inform why a user has access to that record. I'd understand that this can be complicated but this is one source of ...
-3
votes
1answer
150 views

Help needed with test class

I am new to code and needed to check the UserRecordAccess in flow. I was able to put together the below, and it actually works and let's me check the HasEditAccess in flow to then act on it. However ...
0
votes
1answer
197 views

Why account owner should have a role to enable associated contacts as community users?

I cannot find any information as to how the owner record or the owner's role affects records visibility when a record is owned by Customer Community user. I am trying to understand why do we have to ...
0
votes
2answers
36 views

How to restrict a user access to delete opportunity

here is my simple but a little clumsy scenario I have 4 users under a profile. My requirement is user1 should be able to delete his/her Opportunities but not user2,user3,user4. How can I achieve this, ...
1
vote
2answers
63 views

Unable to access record by few users

I have a custom field (type- Text(18) (External ID)) say Ext_ID__c on a custom object. We are using custom profile assigned to a group of users. For few users, Ext_ID__c is accessible, however for ...
0
votes
1answer
32 views

set up sharing rules in a way that allows Community Users to edit their own Contact record

I need some help. Can you tell me please how can I set up sharing rules in a way that allows Community Users to edit their own Contact record ? I tried to change OWD, Sharing rules, Sharing on ...
1
vote
0answers
35 views

How to control the visibility of user's list when we place @user in chatter in salesforce

I want to limit the users which is showing as a list when I place @username on the chatter on the community. My scenario is that if user place @username in the chatter feed on the community then I ...
0
votes
0answers
26 views

Facing issue while editing record

i am trying to edit the record in one of the custom object, but i am getting error Insufficient Privileges. Profile having access to read,edit,create,view all .Please suggest what is the problems is ...
0
votes
1answer
198 views

Unknown User - Can't find based on Id

We have the following apex code in our trigger. Id myId = UserInfo.getUserId(); User me = [SELECT Id, Name, Email, Profile.Id, Profile.Name FROM User WHERE Id=:myId]; This line sometimes throws ...
1
vote
0answers
12 views

Marketing Cloud User and Role data pull

Trying to pull user and role data to cover t eh following. Is there any Reports or SQL out there that can help with this? List of all users Business Unit and what roles are assigned to each user ...
2
votes
1answer
40 views

How do I know if a record was updated manually?

Background I have a piece of my system with rather complex architecture. I also create another object (Interaction_Log__c) where the user enters some other data about the call. On call-complete, I ...
3
votes
1answer
409 views

Orders not visible to Customer Community users

Question in one line is - is there any option to make orders visible to customer community users keeping OWD to Private? Please read below for detailed problem. We have Customer Community User ...
0
votes
1answer
42 views

How can I grant specific administrative privileges without granting view/modify all data?

How can I restrict a user to do only the following activities? User maintenance - Create Users, Deactivate Users, Change Permissions, Change Role in hierarchy, Update Name, Federation Id, and other ...
1
vote
1answer
27 views

set the field Ownership a read only for a specific profile?

I have only 1 profile that i need to disable this option, as I dont want them to be able to change the ownership for: Accounts, Leads, Opportunity But when i try to do it as I would do a different ...
7
votes
2answers
437 views

Cannot query UserRecordAccess for Tasks

I am running my query using the Rest API, but I have reproduced the issue in Workbench as well. The below query works for Account, Opportunity, and Contact, but fails for Task: SELECT ...
1
vote
0answers
43 views

Get the number of Opportunities for each User in the org (the count must include the records to which the User has atleast read access)

I need to get the count of Opportunity record for every User in the org where the User has atleast read access on the Opportunity record. I need to store the data obtained per User for every month in ...
1
vote
2answers
58 views

Group user permission

I want to give permission / access to group of users. Within the group, all users should be able to view/edit each other's records, but not from the other team. The object in question is set to ...
0
votes
1answer
197 views

Force.com User Subscription Limitations, need a workaround for using opportunity

In our organization, we are planning to take Licenses for few users with very limited accessibility , where they can edit accounts, contacts and Opportunities and few custom objects. We are thinking ...
1
vote
1answer
334 views

Workaround to get the UserId from userRecordAccess?

Is there anyway how we can get the UserId from userRecordAccess? It is not possible to query UserId from userRecordAccess. SELECT RecordId,MaxAccessLevel,HasAllAccess, UserId , ...
3
votes
2answers
963 views

How to query users who have access to a particular record?

I have been going through the forums and the documentation and I do not find a way to query the Users who have access to a particular record. For example, when I upload a document, a mail has to be ...
0
votes
1answer
66 views

Allow user to delete records he does not own

I want to allow a user to delete all Jobs(custom object) even ones he doesn't own.Do I need to create a permission set. Please help!! Regards, Kunal
1
vote
0answers
20 views

Query returns nothing when querying UserRecordAccess and filtering with ChatterMessage records

The query in the following screenshots works fine when UserId contains a System Administrator user Id (first screenshot) but returns nothing when the user's profile is a custom one (second screenshot)....
7
votes
1answer
711 views

Salesforce UserRecordAccess query not returning results

I have an apex class that is declared 'without sharing'. This class does some background processing and as a part of that processing, determines whether or not record owners have access to other ...
0
votes
1answer
187 views

Validating record access in Salesforce for multiple users and records?

I have a batch job that process 100 records at a time. During this process it attempts to find and assign ownership of the record to a given user based on different criteria. My problem is that ...
1
vote
1answer
431 views

SOQL List Reports Current User Can Access

I have the following SOQL query: SELECT Id, Name, Format, FolderName, LastModifiedDate FROM Report ORDER BY FolderName, Name Which I am executing using this endpoint of the REST API: /services/data/...
2
votes
1answer
183 views

UserRecordAccess data dump

My application replicates data from Salesforce to my local disk. Initially, the admin downloads the entire dump. The other users will be able to access the entire dump. However, I wanted to enforce ...
6
votes
1answer
210 views

API 34.0 introduces INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY on portal user self-updating contact?

I have the following test that asserts that a portal user is able to update it's own contact first name. @IsTest public class MyTestClass { @IsTest static void portalUserSelfUpdateContact() {...
0
votes
2answers
47 views

can we query on deactivate user on customer portal in login time

I have a issue related to deactivate user I have a field deactivate reason in user object Deactivate User should be redirect on login in portal according to deactivate reason(new field on user) ...
-1
votes
1answer
301 views

Trigger for Freeze Button in Salesforce

Is it at all possible to create a trigger, workflow rule, process builder, flow, etc that would automatically update a custom field on the User object when the "Freeze" button is clicked on the User's ...
0
votes
0answers
73 views

User Access to Accounts and Opportunities/ Sharing Rule on Formula field work around

I have a picklist field(Team__c) at User level with different Team Names in it, which is pulled on to Accounts and Opportunities using a formula field. So now I need to give access to a user to edit ...
3
votes
1answer
2k views

Chatter to Internal Users as a Customer Community User

I have a customer community in which I don't want those customers to be able to see each other in Chatter, so I deselected the "Customer User Visibility" option from my OWD. I do want my users to be ...
1
vote
1answer
203 views

Getting Insufficient Access on task record while trying to edit it

I have a Job Record and Two Users like User A and User B. User A creates a task on Job Record 123 and tasked it to User B. Now User A is created by of this newly created record and user B is owner of ...
1
vote
1answer
130 views

Updating account on opportunity causes owner sharing record get deleted

Workflow updates account owner to generic user 'SFDC Admin' when ever account are created by users. with that said.. If any user is updating account on opportunity, it is resulting in deletion of ...
0
votes
0answers
196 views

What are the values for “Full Name” “First Name” and “Last Name” as they are entered into the props array for setting?

I'm trying to build a custom opt out page. The page will have a form to update the user's profile information. My code looks like this: function updateUser($idNum, $userEmail, $fullName, $firstName, $...
1
vote
0answers
59 views

Report user access level to accounts

I need to create a report showing all the accounts that a concrete user has access to (it's a similar issue like the reported on Generate report for Account User access?) I've tried to use the ...
0
votes
2answers
56 views

Field level access to the particular user for the particular record

I have a scenario, Account "phone" field is only accessible to the system administrator and for normal user its locked. We have the requirement as if normal user want to change "phone" for the ...
0
votes
1answer
24 views

Sharing among one profile users without using team member

how can i share the (Account and opportunity)records among one profiles users with out using team member option. problem with team members is team members list is going an high.it is difficult to ...
1
vote
1answer
379 views

UserRecordAccess

Does UserRecordAccess report edit-ability of ContentDocument or ContentVersion records? Every user I query URA with for either object returns HasEditAccess=true even if the content is not shared ...
2
votes
1answer
815 views

Formula to set value on pick list based on user country

I have a question before using apex to accomplish this. On the Event page layout I'm using a couple of custom fields; Location_Country__c and Location__c. These fields have a field dependency, ...
3
votes
1answer
262 views

Contact last-modified date changed by read-only user

Have a number of read only users, that appear to all be setup the same way, though one of the users is somehow being logged as the user for the last-modified date on the contact. Again, checked the ...
1
vote
1answer
196 views

How can I add a contact I do not own to the Opportunity Contact Role

After configuring Opportunity Contact Role related list, Users can only choose contact they own although they have read access to other contacts. I need them to be able to select any contacts. What ...
0
votes
1answer
830 views

ListException: List index out of bounds: 0 for Custom Employee User account

When i create new User Account and login with that credentials, it gives me this problem if admin doesnt have set thier values yet !!!** AllotmentList = [select id, Days_Remaining__c from ...
1
vote
0answers
21 views

System.ListException: List index out of bounds: 0 error for Custom Employee Profile User [duplicate]

I HAVE ALSO TRIED "isEmpty()" When i create new User Account and login with that credentials, it gives me this problem if admin doesnt have set thier values yet !!! AllotmentList = [select id, ...
1
vote
2answers
190 views

Error deleting a solution attached to a case

I´m unable to delete an FAQ (solution) that is linked to a case record: Clicking on delete: I´ve checked the Organization wide default for object "Solution" but according to the Salesforce ...
4
votes
1answer
93 views

The meaning of “Has Transfer Access” and maybe a possible bug in the free developer organization?

I am new to Salesforce/Apex and I am messing with the User Record Access. There is a field called "HasTransferAccess", but the description of it is not very helpful. What does it actually mean? Also, ...
8
votes
3answers
3k views

Programmatically check a user access level to a record

I have a strange behavior on my org. The user's profile have no "Delete" permissions for the custom object, only "Read / Create / Edit". So he can not delete any record from this object. But when i ...