Questions tagged [user-record]

This Tag is used to group all queries related to Salesforce user Record

Filter by
Sorted by
Tagged with
1 vote
0 answers
19 views

TimeZoneSidKey field in user object not returning entire list of picklist values in when executed in apex context but its working with workbench

code used in method to fetch all the timezone value list: List<DropdownWrapper> timezones = new List<DropdownWrapper>(); Schema.DescribeFieldResult descField = User.TimeZoneSidKey....
0 votes
0 answers
58 views

Why is my test class saying my users do not have access to the Task object?

So I've been having this issue with a test class where two of my tests won't pass due to an error saying INSUFFICIENT_ACCESS_OR_READONLY. Here is my trigger and test class. This is my first attempt at ...
0 votes
1 answer
167 views

Difference between Tooling & Rest API when retrieving fields from USER object

I was trying to get the "User" object's fields list, So I tried to do it using an SOQL query via REST API: Select QualifiedApiName From FieldDefinition where EntityDefinition....
  • 3
0 votes
0 answers
21 views

Connected App User Provisioning Settings Enabled Operation Update ProfileId not triggering

I have managed to set up my connected app with User provisioning. It works well with Enabled Operations Update (Department, Name, Address etc.). Nevertheless it does not somehow seem to trigger the ...
0 votes
1 answer
74 views

"Org doesn’t have permission to display chatter photos on component" when installing managed package

We're getting this error message when installing our managed package into a customer org: Org doesn’t have permission to display chatter photos on component It's related to the deployment of a ...
2 votes
1 answer
140 views

How can I create salesforce user (not `Account` record) through salesforce CLI?

I want to create a User through Salesforce CLI. I know that I can create Scratch-Org users (DOC), but I want to create one in production organization; I know that I can create user through API (DOC, ...
3 votes
1 answer
503 views

Flow not triggering from User object

I've got a autolaunched flow on the user object (create/update). The flow should run when user updates their profile picture but, for some reason, doesn't. In debug mode, the flow runs all the ...
  • 33
0 votes
0 answers
14 views

Unable to Create Test User : MIXED_DML_OPERATION, DML operation on setup object is not permitted after you have updated a non-setup object [duplicate]

I am trying to write an unit test to create a test user. I get the above error upon insert. Any ideas, workarounds or suggestions. Following is a sample of the test method. This only seems to happen ...
0 votes
0 answers
92 views

Change Lightning Record Page Template button Is not working

I want to change Template for My Account Lightning Record Page. However when I click on the Change button nothings happens. Did anyone have the same problem before ? Any help will be appreciated. ...
0 votes
1 answer
224 views

How To Find Out If An Admin Changed The Username On A User Record?

How do I find out if an Admin changed the username on a user record? There is no field history tracking for the User object.
  • 111
0 votes
0 answers
120 views

I only want to give users edit and read permissions for macros object but using permission set only and not via profile

I have a requirement where I want to give edit permission to users using permission set.. and not via profile. I created one permission set and given read,edit and view all permission still after ...
  • 1
0 votes
0 answers
45 views

How to get owner's photo in custom record page?

I made a custom record page, where I can get detail info about records. This includes the owner field. And next to the field I want to get a photo of the owner and maybe user's photo from "...
1 vote
1 answer
656 views

How do you get Community User Contact Id in Aura without Apex

In an existing Aura component, I'm trying to get Contact Id of Community user without Apex. I'm trying to avoid having to create an Apex class just for this purpose. I tried below, let userObj = $A....
0 votes
0 answers
50 views

New User URL not displaying properly

I have a requirement to invoke the user creation page to prepopulate some fields. I'm using the following URL: /lightning/o/User/new?defaultFieldValues=LastName={!User.LastName},ProfileId={!User....
0 votes
0 answers
24 views

email address not accepted in username of a particular user record, even though its never used

I need to add my company's email address to my user record in Company's Production org. While I am trying to do so, I am getting an error that this email address is already in use. I checked ...
0 votes
1 answer
784 views

How to reset Security Token of API Only User? [duplicate]

How to reset Security Token of API Only User ? I created a new user in salesforce exclusively for integration purpose. Got the welcome email,Verified Account and changed password. Prior to this, I ...
1 vote
0 answers
146 views

UserPermissionsMarketingUser is visible on the User Detail record for user records but it cannot be found in Object Manager

I can select or deselect UserPermissionsMarketingUser for User detail records manually. The field is visible. However, when I click on the Fields and Relationships for the User object using Object ...
0 votes
2 answers
281 views

Can you Mass Disable the Marketing User field (UserPermissionMarketingUser) for multiple User records using Data Loader?

I am attempting to mass disable the User record's Marketing User field (UserPermissionMarketingUser) for certain user records that exist within a test SF org. The steps I used were: Create a report ...
1 vote
1 answer
1k views

Users able to edit records not owned by them inspite of OWD Setting Public Read Only

The OWD setting on Opportunity is Public Read Only Permission on Opportunity for User Profile is: Create, Edit, Delete, Read, View All. No permission to Modify All Sharing Rules are not defined for ...
3 votes
1 answer
413 views

LWC locale does not match Apex version

When I utilize the following in my LWC component: import USER_LOCALE from '@salesforce/i18n/locale'; I get this back: en-US However, when I run the following in Apex: UserInfo.getLanguage() I get ...
0 votes
1 answer
113 views

Mobile User checkbox not appears in user detail in developer sandbox and UAT even user having API Enable permission in profile

and Production i am able to see mobile user checkbox. Mobile User checkbox not appears in user detail in dev sandbox and UAT but its appeared in dev 2 sandbox instance.
  • 77
0 votes
1 answer
52 views

Record dependency

I have a custom object to apply for leaves (such as Casual, Sick, Unpaid) for the users in my org. I have applied a validation rule to check different users cannot create or edit any record for other ...
0 votes
1 answer
435 views

How to access the User object from Account object, via the Contact object. Error: No such column 'Users' on entity 'Contact'

I would like to write a SOQL query which goes from Account > Contact > User(s) Something like this: [SELECT PersonContactId, PersonContact.Users, PersonEmail FROM Account WHERE ...] But I get ...
  • 8,520
2 votes
1 answer
492 views

Lightning Community: Current User ID as URL Parameter

In a Lightning Community, is it possible to reference the current user's contact ID as a URL parameter? I want to link directly to the community user's contact record so they can update their contact ...
0 votes
1 answer
581 views

Error when adding Role to my user in a scratch org

I came across this issue when trying to add a role to my own user, in order to have the account serve as a community account for community user provisioning. I also tried creating another admin with ...
0 votes
1 answer
80 views

User Creation in External System [closed]

Is there a way to automatically create a user in an external web application once the user is created in Salesforce? What are the different ways to go about doing it? If you have some examples that ...
0 votes
1 answer
238 views

Field 'ProfilePhotoId' on object 'User' is not supported

I have been getting this exception when updating lead(Process Builder). While I do not see any issue with process builders update operation I get below exception. This error occurred: ...
  • 1,202
0 votes
0 answers
182 views

Use of ?noredirect=1&isuserentityoverride=1

Can you please explain me the use of setting noredirect=1 and isUserEntityOverride=1 and appending it to the url. I'm creating a custom link in Lightning which will open the user record. If I set ...
0 votes
1 answer
149 views

Is it possible to create a user from one Org to another automatically?

I am trying to Create an Org to manage all of the user records for a POC. So from my POC org I have an Object called People (can also be the user record) and have a related list called Org Access (...
1 vote
1 answer
184 views

Suppressing password generation when creating community user with API

I want to use the Salesforce API (REST or SOAP) to provision new Community Cloud Users. I have successfully invoked the API and created the user account, however the transaction automatically ...
5 votes
1 answer
5k views

Documentation: Automated Process user/proxy user

I wanted to read more about the Automated Process user and what processes go through that user but I cannot find a salesforce's documentation page. Can somebody provide me with a link? I also read ...
  • 4,531
0 votes
1 answer
170 views

Allow access to a user-type custom object

I have a custom object called 'Advisor' and for every single record, I would like to allow authentication access for that one Advisor to log in and view their record and make changes. For example, ...
  • 1,000
3 votes
1 answer
104 views

Show View State checkbox on User record is missing

I have one client where the "Show View State in Development Mode" checkbox field is missing on the User detail screen, so I can't enable View State. The user has a full Salesforce license and is a ...
  • 6,514
1 vote
2 answers
1k views

soql query not retrieving user records for Community User

List<String> userIds = new List<String>(); for(Note n : notes) { userIds.add(n.CreatedById); } Map<String, User> userMap = SystemContextMethodsHelper.getUsers(userIds); ...
6 votes
2 answers
2k views

Can community user query internal users of salesforce

I am running a trigger whenever a contact is edited. In trigger I am querying user [Select id from user] I am getting all the users when trigger in run in any internal user context. But when same ...
  • 3,315
1 vote
0 answers
35 views

Reassign Contact Associated to Community User [duplicate]

I am not finding a way to change the contact that the community user is associated to. I have tried the following: 1) Upload/Download via Data Loader - FAIL - Data Loader cannot see ContactId on ...
0 votes
1 answer
65 views

date format and phone number format

I have a few user who complained that the date format and phone number format are the US ones. This is creating issues as the number of digits are not the same for phone numbers, and people may ...
2 votes
1 answer
2k views

Show user profile image - third party site

I am using Salesforce REST API to pull in the user profile salesforce object into my external site. I wanted to be able to display things like about me, title, and image on my site. I get all of this ...
  • 187
0 votes
1 answer
407 views

Exception email alert cites a UserId that doesn't exist in my org

I wrote an apex service (called by my Account Trigger before insert and before update) that runs some complex validation , and it starts by querying for the user record of the running user since the ...
  • 1,194
2 votes
1 answer
216 views

System.CalloutException: You have uncommitted work pending error when creating testing user and testing callout

There are a lot of questions related to "System.CalloutException: You have uncommitted work pending" errors, but could not find solution for following use case: Basically, a static method in the test ...
  • 3,585
2 votes
1 answer
3k views

No such column 'ProfileId' on entity 'User' when try to do SOQL query using Community Plus User

I am trying to query User record information in Community by using Community Plus user but getting following error: No such column 'ProfileId' on entity 'User' Any idea what specific permission my ...
1 vote
0 answers
2k views

SFDX: Create User with Salesforce License in Scratch Org

I'm trying to create a user in a scratch org through SF CLI using force:user:create and a user-def.json file. Here is a sample body request according to Salesforce documentation: { "Username": "...
  • 5,518
0 votes
1 answer
144 views

User Standard Controller populate output fields with logged in user details

Thanks anyone for listening. I have added a section to our User page layout consisting of 14 custom fields that are used to track sales performance (most use the DLRS app to roll up data from ...
  • 43
0 votes
1 answer
1k views

Api name for Mobile User field in User detail page

I need to turn off Mobile User flag on Users for some profile. I am not able find the Api name for that to execute that through script. Please let me know anyone has idea on that. Thanks in advance.
2 votes
0 answers
646 views

How to enable community user to view/edit their Contact fields?

We need to enable community users to be able to edit their contact fields through My Profile. But it's showing only User details. To cater that I tried building a lightning component to read user Id ...
0 votes
1 answer
62 views

Really Is not possible to delete User or any other option.?

I have created a community where any public user can self register. As a developer, I'm developing a different functionality for Self registration Page. Now I've to test self Registration ...
  • 614
1 vote
1 answer
2k views

How to get the user logged in in community page?

I need get the user id logged in a web page community site.com (not is a VisualForcePage) in this page I need the user id and others user's fields.
  • 17
0 votes
2 answers
138 views

Creating a new record out of a newly created user record

I have a custom object called Employee__c. Once I create a new User in Salesforce, a new and corresponding Employee__c record has to be automatically created in the system using the information from ...
  • 353
1 vote
1 answer
925 views

SOQL Query Like % Wild Card not working?

I am currently trying to do a SOQL query with a like using the % wildcard. According to the documentation: The % wildcard matches zero or more characters. This does not seem like it's working. ...
  • 591
0 votes
2 answers
59 views

How to use user custom field value in custom object field in filter in Reports?

I am Trying to create a report on Object__c, I have custom field(projectName__c) value on the current user. So while creating the reports, I am planning to filter like below:. Object__c....