Stack Exchange Network

Stack Exchange network consists of 174 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

A person who uses the system, often more specifically a person with a user licence assigned.

0
votes
1answer
14 views

Do we need separate authentication grant to access different salesforce object?

We have a soql query which we run against the api that works on User object Select Id,Name from User; we are trying to enhance the query to retrieve the profile.name and role.name using the same ...
0
votes
1answer
30 views

How many records could we extract from SOQl query on User object?

We are trying to run a SOQl query to extract the profileName and userRoleName corresponding to id's in the given list SELECT Id,profile.name,userrole.name FROM User WHERE Id in ('1','2','3','4'...
0
votes
1answer
19 views

How to extract only profile.name and userrole.name corresponding to a particular User object

We have an existing Soql query SELECT Id,Username,LastName,FirstName FROM User we are trying to enhance this query to retrieve profile.name, userrole.name corresponding to each user as per How to ...
0
votes
0answers
22 views

REST call only works on some User Profiles

I use a REST call to get the ID for a global value set for use on a visualforce page. The REST call is working, but when I'm logged in as a standard user I get this error that shows on the page: ...
1
vote
0answers
21 views

Indirectly reference users in workflows, process builder, etc

What are our options for abstracting away references to user accounts in Workflows and process builder flows? I have consultants delivering to me workflow metadata that hardcodes user emails or user-...
1
vote
2answers
24 views

How to customize the email Template of the User Email address change Email

The Users want the content of the notification mail which they receive on changing the Email address to be modified. Or they want the From Email Address to be changed to a different one as some of ...
0
votes
2answers
19 views

What access does have to user manager in a queue?

Scenario:- When you see a queue on UI, there are only 9 users. There is one button to see all user i.e View All User When I click on it, it shows me a list of around 55 users with most of them having ...
0
votes
1answer
39 views

How to add more number of users in the custom object record?

UseCase: There is custom object called Business Meeting with the fields start time, end time, Date, Subject. In this I also want to add users who are all attending the business meeting while creating ...
1
vote
1answer
14 views

user specific record visibility

Let suppose I have created one record . On this record there is lookup to user. whichever user I will select on this record that user able to see the record when he login in salesforce. How to acheive ...
0
votes
1answer
25 views

Create a community in test without use seeAllData=true

do you know if it is possible to create a community in test class without to use the feature seeAllData=true I would like to create a community, create community users and assign users to the ...
0
votes
1answer
31 views

How to reassign an object to the user with Role 'X'?

We have a few users with Role 'X'. We need to reassign an object to one from these users, if it's created not by one of them. But my loop choose the last one and change owner even if owner is already ...
1
vote
1answer
32 views

How to get the profile name and role name from User object

We already have a soql query to retrieve the User object (which returns the role id and profile id) was wondering if we could retrieve the RoleName and ProfileName from within the same query instead ...
2
votes
0answers
67 views

Retrieve user's name without Pre-chat form for Einstein Bots

I am creating an Einstein chatbot and I want to greet the user by their name. The Apex class that I have written for this purpose returns "Platform Integration User". An answer to another post says to ...
0
votes
1answer
28 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
17 views

Sharing Case Records with Customer Community Users

We have set up the community in Salesforce and business use case is that whenever the case raises from the external user and assigned it to an internal user for resolution than any action or updates ...
0
votes
0answers
26 views

How to get access token for Partner Community User

I need to obtain the access token for my Partner Community User. Is it possible? Can I use standard service /services/oauth2/token ? Thanks Daniele
5
votes
1answer
103 views

SOQL returning incorrect value

This is throwing me for a loop. I have a custom field on user, Backend_User__c. The formula is pretty simple: IF( OR( Profile.Name = "API Only", Profile.Name = "Boldchat API Only", Profile....
0
votes
1answer
22 views

Control Picklist value for a specific user

Is it possisble to control picklist values to specific user..? Eg: If I add new picklist value to Account Type, that value should be available only for a specific user
0
votes
1answer
34 views

Create Installed Package Into Business Unit (Account) Via API

We are moving from the old SOAP API to the new REST API to publish into Content Builder. As a result we need to create installed packages inside our clients SFMC accounts so we can get tokens to use ...
2
votes
1answer
60 views

How to give the access to show all calendar events in admin user side in salesforce?

I created calendar event through admin side, It will be showing standard calendar events. Now I created another event through User A, He is standard user profile. But my doubt is User A already ...
1
vote
2answers
60 views

Update User profile in Apex

I have a use case where I need to update a logged in user profile based on some criteria. While doing so in apex I get the below error : FIELD_INTEGRITY_EXCEPTION, Cannot change profile for current ...
-1
votes
1answer
40 views

How to get a list of account record types available based on profile ID

So I am trying to create a feature that will allow users to search external databases to add accounts to salesfoce, and if not found they can create the account from scratch. However the org I am ...
0
votes
1answer
12 views

Do not see Manage Assignments in Permission Sets

I can not find Manage Assignments in Permission Sets. There is just no such button. Why would I expect the Manage Assignments be there? Because it is told on Trailhead that it is there: ... ...
-1
votes
1answer
31 views

Why should one want the password to expire in Salesforce? [closed]

Why should one want the password to expire in Salesforce? Is it the same as a temporary account? Because if the password invalidates after some time that means the user won`t be able to login and ...
2
votes
1answer
51 views

Can't access to User Photo Url when Trigger

I have a problem when I trigger on the User object: I can't get the profile photo url. On this simple code I made a trigger to an User update and I send me by mail the fields FirstName LastName and ...
0
votes
1answer
17 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 ...
0
votes
1answer
26 views

How to create a User Provisioning FLow

I need to create user provisioning on Connected App but there is no particular guide how to go about it. I can only find bits and pieces. Even Salesforce talk about some util packages for some common ...
0
votes
2answers
79 views

How to query the Hierarchical Relationship inside the User Object?

I want to get the Users which report to a particular user (A manager) by using the Hierarchical Relationship inside the User Object. Appreciate if someone can give an example. Small clarification: ...
0
votes
1answer
34 views

If statement based on created by profile name to show value is custom formula field

This new field will be called "Line item Total Test" on Opportunity Product. This Formula is not working- IF(CreatedBy.Profile.Name = "Standard User", TotalPrice), IF(CreatedBy.Profile.Name = "...
0
votes
0answers
25 views

Connect a new portal user with existing contact or Update the User.ContactID with existing Contact.ID

I am trying to create a Portal User without creating a contact and want to link the User with existing contact. But somehow I am unable to do this and now I want to update the User.contactID with ...
0
votes
0answers
15 views

Creating users in Test Class for Batch Class [duplicate]

I have a batch class, which queries users from system and updates them as per some criteria. While writing the test class for this Batch, we create 2 users in system and invoked the Batch Class ...
0
votes
1answer
23 views

Sys admin logging in as Integration user and creating accounts. Should you see the integration user be the account owner

If I have a sys admin logging on as an integration user and creating accounts. Shouldn't the integration user be the account owner and not the sys admin. Does SF look at the IP address when a user ...
1
vote
3answers
1k views

Generate new password and notify user immediately

While creating new users from Salesforce UI, we have a checkbox right at the bottom called Generate new password and notify user immediately. This is set to true by default and sends Welcome To ...
0
votes
0answers
30 views

Map of User Ids and Total Amount of Closed Opps This Month

I have a trigger on Opp, after each insert/update I need to recalculate a user's sales for the month. I have the user set and I can do an aggregate query, but how do I connect these in the map? Here ...
2
votes
1answer
19 views

Can high volume portal user profile be got using UserInfo.getProfileId in Trigger context

A trigger on a custom object runs when a portal user does some operation. This trigger calls a public static method from a public apex class which does not have with sharing defined. I need to access ...
1
vote
1answer
47 views

Can we allow new customer community users to self-register via API?

We are building a custom app and want to use customer community licences to allow users to sign up and authenticate to via API using our app UI. We need our app to be able to do the following: 1- ...
0
votes
1answer
29 views

Button access to public groups

I am facing issue to build this logic in my application, can anyone help me how to achieve this scenario. I have two public groups in my Org like Group A, Group B. I have two buttons in the record ...
0
votes
1answer
15 views

Is there a way to retrieve all salesforce usernames and orgs attached to my email?

Just wondering if we can get all usernames (SF username and Orgs) attached to my email. According to this article only way seems to get help from Administrator. Appreciate if someone had the same ...
1
vote
1answer
17 views

Account roles are not getting created on enabling the account as a partner

I have an integration project that is stuck due to the limitation I am facing with my Salesforce instance. On enabling Account as a Partner, the roles are not getting assigned. I can't see the role ...
1
vote
1answer
34 views

Run a trigger when disabling a customer user

I want to write a trigger that will mark a checkbox on the contact object once a user clicks on the 'Manage External Users'->'Disable Customer User' This is the trigger I wrote, it does not run when ...
1
vote
1answer
66 views

RegEx for UserName format

My Requirement is while creating a user if user Id is not in corrected format then Validation message should be display o UserName Field. so if my email address is abc.def@xyz.com then my User name ...
0
votes
1answer
21 views

While User followers list stop emails sent

Through Apex code, we want All users to follow a particular user. While trying to do that, Salesforce generates email to particular user. Email is getting triggered even if email settings is switched ...
1
vote
1answer
718 views

Can't set the value of a lightning:inputField for a field of type User

I'm trying to set a default value on a lightning:inputField component. The fieldName references a User value. This is the code: <lightning:recordEditForm aura:id="recordEditForm" objectApiName="...
0
votes
1answer
32 views

Users who can/cannot be assigned Permission Set

We wont be able to add "Permission Set" to all the users (or with a particular userTypes). Like we cannot add "Permission Set" to a UserType - "Guest" or a community User. I'm trying to assign a "...
-2
votes
1answer
100 views

Upload Salesforce user profile photo via rest

I am entirely new at this. I want to know if it is possible to upload the user record profile picture via rest. I found that the photo url is exposed via the following /services/data/v41.0/connect/...
-2
votes
1answer
33 views

How to know the total license in Salesforce in apex?

I have scenario to find the remaining license in salesforce.I have found the count of used licenses by below query Integer licenses =[SELECT COUNT() FROM User WHERE Profile.UserLicense.Name = 'Force....
0
votes
2answers
45 views

Cannot edit users in Sandbox

I am encountering an issue in my sandbox in which any time I make an edit to a user account, I receive the following error message: Unable to Finish Processing Request An error has occurred while ...
2
votes
1answer
32 views

Salesforce DX User restrict Production permisison on objects/Apps

My requirement : I want DX User to be able to access only Dev-Hub/Scratch Org and Name Space registry. On the Dev-Hub, this user should NOT have ability to create records on any standard/custom ...
0
votes
1answer
34 views

Forgot my personal Developer Account password and security question

I forgot my personal Developer Account password and security question. But it is still tied to my email Id and I'm getting links when I click on reset password but Then I forgot the answer for my ...
1
vote
2answers
304 views

Identify User that Last Modified Specific Field by using apex

I have a custom checkbox field. I need to know how to identify the last user that changed the custom checkbox field by using an apex code. Is it possible? If so, how?