• Bhushan burujwale
  • NEWBIE
  • 10 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 46
    Questions
  • 24
    Replies
Hi,

I have 20 free license of External Identity User but i am still unable to assign that while creating user.

Free licenses

Above is free licenses

NewUser

Here i am not getting External Identity user license option, same with Partner Community

Am i missing anything

Thanks

Hello, 
I want to know is there any possibility to create connected app with the same API name for another managed package. i.e connected app name will be same but namespace will be different.

Consider I have created one connected app with name "Test" in namespace 1, and i want to create connected app with same name "Test" in namespace 2, will that be possible for me?

Hii,
To get the 'ConnectedApps' details, I'm using the Metadata REST API (https://url_instance/services/metadata/v50.0/components/connectedApps/ app_name >)., in the response, I get a "ConsumerKey" field, which I want to keep confidential.

I want to know if there is any way to exclude this field from the response. I tried doing it by '? exclude/field_name' but it's not working for me.

Thank you

Hi,
I want a API Endpoint which will fetch the Connected Apps Scopes and Namespace associated with it.
Thanks.
Hello,
I am trying the API for composite queries. I have two URLs mentioned in the screenshot. I am getting results from the first URL, but I am not getting results from the second URL. The 2nd url is giving me an error "is not a valid url". The 2nd URL is working separately, but it does not work with the composite query.
Please hel[p me woth this.
Thanks.

User-added image
Hello, 
I am trying to search for Dev Hub option in quick box, but i can't see any Dev Hub option there ( I am on Partner Developer Edition).
Hello,
Can you please tell me the steps to create second-generation managed package and how to create namespace associated with it. I also want to enable Dev Hub but can't  see any option of Dev Hub in Quick Find box.

Please help me with this.

Thanks
Hello,
I already have one package and a namespace associated with it. I want to create another package and namespace associated with it. I am able to create a new package in the package manager. but I can't see any option to create a namespace there. Please help me with this.
Thanks
What are the permissions System Administrator Profile have?
What will be lose if those permissions removed?

Hi i am hitting create user soap request from soap ui

with <urn1:IsActive xmlns="">false</urn1:IsActive>
as i want to create a inActive user.However i'm getting error :

<errors>
<message>owner or user is inactive. Org Id:00Di0000000bTeC</message>
<statusCode>INACTIVE_OWNER_OR_USER</statusCode>
</errors>

But on other Salesforce tenent using soap ui i'm able to create inActive account. 

Can you please help anyone what settings changes needs to create inActive Account ?

What API requests we can use to Add UserLiecnse to user or to Remove UserLicense Assigned to User?
How to assign permissionSet Licenses to user?
or PermissionSetLicense are assigned to user via PermissionSet? How the association between user and PermissionSetLicense happens?
 
When I am trying to register a managed package from Partner Community getting  - 
We cannot verify your credentials because your IP address does not match your Salesforce login.

I am trying to login to Same org where LMA is installed with valid crentials. Do we need to set any configurations for this?
Attaching snippet of error.Salesforce-Managed Package_Register_Issue
Can we License unmanaged packages? If not how to convert unmanaged packages to Managed packages?
 
How to assign Managed packge license to user?
What all configurations required in License Managemenet app to assign these Managed packaged License to user?
Which Salesforce Object indicated Managemd package License assigned to User?
What are the configurations need to enable "Manage Liscense" for License Management App?
Can We create Multiple PermissionSetGroups with same DeveloperName and MasterLabel fields? Or both these fields are unique?

Hi,
We are trying to implement SAML 2.0 assertion flow to allow user to login into Salesforce API through Oauth2 authentication, and grant type as saml2.0.

We have configured SSO and connected app, also configured SAML assertion XML, and validated it though salesforce SAML assertion validator. But while using Base46 encoded saml assertion, it says "Invalid assertion".

Below is the assertion XML and its validation snapshot:

<?xml version="1.0" encoding="UTF-8"?><saml2p:Response xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:xs="http://www.w3.org/2001/XMLSchema" Destination="https://atul-sail-dev-ed.my.salesforce.com?so=00Di0000000bTeC" ID="_45c6e79c-22b5a965" IssueInstant="2020-06-11T13:20:25.965Z" Version="2.0"><saml2:Issuer xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">https://atul-sail-dev-ed.my.salesforce.com</saml2:Issuer><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1"/><ds:Reference URI="#_45c6e79c-22b5a965"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="xs"/></ds:Transform></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>kKeZRO84Eki3ZgHk6Qhs8q3gtgM=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>K1fRatNZnDDavMGEwEaP5YsJ2ISUAdgvcOsnC4vAkgQZ+uccQ7U4aQ==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIID0zCCA5GgAwIBAgIEF/uFITALBgcqhkjOOAQDBQAwgboxCzAJBgNVBAYTAlVTMQswCQYDVQQI
EwJDQTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzESMBAGA1UEChMJQXhpb20gU1NPMVEwTwYDVQQL
E0hGT1IgREVNT05TVFJBVElPTiBQVVJQT1NFUyBPTkxZLiBETyBOT1QgVVNFIEZPUiBQUk9EVUNU
SU9OIEVOVklST05NRU5UUy4xHzAdBgNVBAMTFkF4aW9tIERlbW8gQ2VydGlmaWNhdGUwHhcNMTQw
NjIwMDQzMDI3WhcNNDExMTA1MDQzMDI3WjCBujELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYw
FAYDVQQHEw1TYW4gRnJhbmNpc2NvMRIwEAYDVQQKEwlBeGlvbSBTU08xUTBPBgNVBAsTSEZPUiBE
RU1PTlNUUkFUSU9OIFBVUlBPU0VTIE9OTFkuIERPIE5PVCBVU0UgRk9SIFBST0RVQ1RJT04gRU5W
SVJPTk1FTlRTLjEfMB0GA1UEAxMWQXhpb20gRGVtbyBDZXJ0aWZpY2F0ZTCCAbgwggEsBgcqhkjO
OAQBMIIBHwKBgQD9f1OBHXUSKVLfSpwu7OTn9hG3UjzvRADDHj+AtlEmaUVdQCJR+1k9jVj6v8X1
ujD2y5tVbNeBO4AdNG/yZmC3a5lQpaSfn+gEexAiwk+7qdf+t8Yb+DtX58aophUPBPuD9tPFHsMC
NVQTWhaRMvZ1864rYdcq7/IiAxmd0UgBxwIVAJdgUI8VIwvMspK5gqLrhAvwWBz1AoGBAPfhoIXW
mz3ey7yrXDa4V7l5lK+7+jrqgvlXTAs9B4JnUVlXjrrUWU/mcQcQgYC0SRZxI+hMKBYTt88JMozI
puE8FnqLVHyNKOCjrh4rs6Z1kW6jfwv6ITVi8ftiegEkO8yk8b6oUZCJqIPf4VrlnwaSi2ZegHtV
JWQBTDv+z0kqA4GFAAKBgQCXr1mp4UvByY6dGbDOyq3wMs6O7MCxmEkU2x32AkEp6s7Xfiy3MYwK
wZQ4sL4BmQYzZ7QOXPP8dKgrKDQKLk9tXWOgvIoOCiNAdQDYlRm2sYgrI2SUcyM1bKDqLwDD8Z5O
oLeuQAtgMfAq/f1C6nREWrQudPxOwaoNdHkYcR+066MhMB8wHQYDVR0OBBYEFE2JAc97wfHK5b42
nKbANn4SMcqcMAsGByqGSM44BAMFAAMvADAsAhR+Cjvp8UwNgKHfx2PWJoRi0/1q8AIUNhTXWlGz
J3SdBlgRsdFgKyFtcxE=</ds:X509Certificate></ds:X509Data></ds:KeyInfo></ds:Signature><saml2p:Status><saml2p:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/></saml2p:Status><saml2:Assertion xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" ID="_b1cff0c-7976cd78" IssueInstant="2020-06-11T13:20:25.965Z" Version="2.0"><saml2:Issuer>https://atul-sail-dev-ed.my.salesforce.com</saml2:Issuer><saml2:Subject><saml2:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">bhushan.burujwale@36demo.com</saml2:NameID><saml2:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer"><saml2:SubjectConfirmationData NotOnOrAfter="2020-06-11T13:21:25.965Z" Recipient="https://atul-sail-dev-ed.my.salesforce.com?so=00Di0000000bTeC"/></saml2:SubjectConfirmation></saml2:Subject><saml2:Conditions NotBefore="2020-06-11T13:20:25.965Z" NotOnOrAfter="2020-06-11T13:21:25.965Z"><saml2:AudienceRestriction><saml2:Audience>https://saml.salesforce.com</saml2:Audience></saml2:AudienceRestriction></saml2:Conditions><saml2:AuthnStatement AuthnInstant="2020-06-11T13:20:25.965Z"><saml2:AuthnContext><saml2:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:unspecified</saml2:AuthnContextClassRef></saml2:AuthnContext></saml2:AuthnStatement><saml2:AttributeStatement><saml2:Attribute Name="ssoStartPage" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified"><saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">http://sfsamlappgrant.herokuapp.com/RequestSamlResponse.action</saml2:AttributeValue></saml2:Attribute><saml2:Attribute Name="logoutURL" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified"><saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">https://atul-sail-dev-ed.my.salesforce.com/services/auth/sp/saml2/logout</saml2:AttributeValue></saml2:Attribute></saml2:AttributeStatement></saml2:Assertion></saml2p:Response>
 

User-added image


But its Base64 encoded value is not working with request:

User-added image
Base64 saml assertion:

PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c2FtbDJwOlJlc3BvbnNlIHhtbG5zOnNhbWwycD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnByb3RvY29sIiB4bWxuczp4cz0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIERlc3RpbmF0aW9uPSJodHRwczovL2F0dWwtc2FpbC1kZXYtZWQubXkuc2FsZXNmb3JjZS5jb20/c289MDBEaTAwMDAwMDBiVGVDIiBJRD0iXzQ1YzZlNzljLTIyYjVhOTY1IiBJc3N1ZUluc3RhbnQ9IjIw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b3V0VVJMIiBOYW1lRm9ybWF0PSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YXR0cm5hbWUtZm9ybWF0OnVuc3BlY2lmaWVkIj48c2FtbDI6QXR0cmlidXRlVmFsdWUgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeHNpOnR5cGU9InhzOnN0cmluZyI+aHR0cHM6Ly9hdHVsLXNhaWwtZGV2LWVkLm15LnNhbGVzZm9yY2UuY29tL3NlcnZpY2VzL2F1dGgvc3Avc2FtbDIvbG9nb3V0PC9zYW1sMjpBdHRyaWJ1dGVWYWx1ZT48L3NhbWwyOkF0dHJpYnV0ZT48L3NhbWwyOkF0dHJpYnV0ZVN0YXRlbWVudD48L3NhbWwyOkFzc2VydGlvbj48L3NhbWwycDpSZXNwb25zZT4=

 

Can someone please help me on this? how can I get the assertion working.

We are getting below exception in one of our customer environment while we are trying to use a login api.


- UNKNOWN_EXCEPTION: The reference to entity  "FyqvuKwYdUxifmPj3ifNW8PA1d" must end with the ';' delimiter
 The response returned from Salesforce:
url=https://test.salesforce.com/services/Soap/u/33.0/, errorCode=500, getMessage()=<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sf="urn:fault.partner.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>UNKNOWN_EXCEPTION</faultcode><faultstring>UNKNOWN_EXCEPTION: The reference to entity &quot;FyqvuKwYdUxifmPj3ifNW8PA1d&quot; must end with the &apos;;&apos; delimiter.</faultstring><detail><sf:UnexpectedErrorFault xsi:type="sf:UnexpectedErrorFault"><sf:exceptionCode>UNKNOWN_EXCEPTION</sf:exceptionCode><sf:exceptionMessage>The reference to entity &quot;FyqvuKwYdUxifmPj3ifNW8PA1d&quot; must end with the &apos;;&apos; delimiter.</sf:exceptionMessage></sf:UnexpectedErrorFault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>

Regards,
Imran
I am using Dataloader to import user.csv. I have 9K user records in user.csv. If I use dataloader to import these records does it import all these records with the same Id, ProfileId, UserRoleId or it will create diffrent uniqueId for these.

Example;
If I have user record with Id 0050H0000098J6MMAU, I am importing this user record in different tenant, does the user record will be created with same Id as in csv file?

Hii,
To get the 'ConnectedApps' details, I'm using the Metadata REST API (https://url_instance/services/metadata/v50.0/components/connectedApps/ app_name >)., in the response, I get a "ConsumerKey" field, which I want to keep confidential.

I want to know if there is any way to exclude this field from the response. I tried doing it by '? exclude/field_name' but it's not working for me.

Thank you

Hello,
Can you please tell me the steps to create second-generation managed package and how to create namespace associated with it. I also want to enable Dev Hub but can't  see any option of Dev Hub in Quick Find box.

Please help me with this.

Thanks
Hello,
I already have one package and a namespace associated with it. I want to create another package and namespace associated with it. I am able to create a new package in the package manager. but I can't see any option to create a namespace there. Please help me with this.
Thanks

Hi i am hitting create user soap request from soap ui

with <urn1:IsActive xmlns="">false</urn1:IsActive>
as i want to create a inActive user.However i'm getting error :

<errors>
<message>owner or user is inactive. Org Id:00Di0000000bTeC</message>
<statusCode>INACTIVE_OWNER_OR_USER</statusCode>
</errors>

But on other Salesforce tenent using soap ui i'm able to create inActive account. 

Can you please help anyone what settings changes needs to create inActive Account ?

What API requests we can use to Add UserLiecnse to user or to Remove UserLicense Assigned to User?
What are the configurations need to enable "Manage Liscense" for License Management App?

Hi,
We are trying to implement SAML 2.0 assertion flow to allow user to login into Salesforce API through Oauth2 authentication, and grant type as saml2.0.

We have configured SSO and connected app, also configured SAML assertion XML, and validated it though salesforce SAML assertion validator. But while using Base46 encoded saml assertion, it says "Invalid assertion".

Below is the assertion XML and its validation snapshot:

<?xml version="1.0" encoding="UTF-8"?><saml2p:Response xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:xs="http://www.w3.org/2001/XMLSchema" Destination="https://atul-sail-dev-ed.my.salesforce.com?so=00Di0000000bTeC" ID="_45c6e79c-22b5a965" IssueInstant="2020-06-11T13:20:25.965Z" Version="2.0"><saml2:Issuer xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">https://atul-sail-dev-ed.my.salesforce.com</saml2:Issuer><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1"/><ds:Reference URI="#_45c6e79c-22b5a965"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="xs"/></ds:Transform></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>kKeZRO84Eki3ZgHk6Qhs8q3gtgM=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>K1fRatNZnDDavMGEwEaP5YsJ2ISUAdgvcOsnC4vAkgQZ+uccQ7U4aQ==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIID0zCCA5GgAwIBAgIEF/uFITALBgcqhkjOOAQDBQAwgboxCzAJBgNVBAYTAlVTMQswCQYDVQQI
EwJDQTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzESMBAGA1UEChMJQXhpb20gU1NPMVEwTwYDVQQL
E0hGT1IgREVNT05TVFJBVElPTiBQVVJQT1NFUyBPTkxZLiBETyBOT1QgVVNFIEZPUiBQUk9EVUNU
SU9OIEVOVklST05NRU5UUy4xHzAdBgNVBAMTFkF4aW9tIERlbW8gQ2VydGlmaWNhdGUwHhcNMTQw
NjIwMDQzMDI3WhcNNDExMTA1MDQzMDI3WjCBujELMAkGA1UEBhMCVVMxCzAJBgNVBAg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Status><saml2:Assertion xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" ID="_b1cff0c-7976cd78" IssueInstant="2020-06-11T13:20:25.965Z" Version="2.0"><saml2:Issuer>https://atul-sail-dev-ed.my.salesforce.com</saml2:Issuer><saml2:Subject><saml2:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">bhushan.burujwale@36demo.com</saml2:NameID><saml2:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer"><saml2:SubjectConfirmationData NotOnOrAfter="2020-06-11T13:21:25.965Z" Recipient="https://atul-sail-dev-ed.my.salesforce.com?so=00Di0000000bTeC"/></saml2:SubjectConfirmation></saml2:Subject><saml2:Conditions NotBefore="2020-06-11T13:20:25.965Z" NotOnOrAfter="2020-06-11T13:21:25.965Z"><saml2:AudienceRestriction><saml2:Audience>https://saml.salesforce.com</saml2:Audience></saml2:AudienceRestriction></saml2:Conditions><saml2:AuthnStatement AuthnInstant="2020-06-11T13:20:25.965Z"><saml2:AuthnContext><saml2:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:unspecified</saml2:AuthnContextClassRef></saml2:AuthnContext></saml2:AuthnStatement><saml2:AttributeStatement><saml2:Attribute Name="ssoStartPage" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified"><saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">http://sfsamlappgrant.herokuapp.com/RequestSamlResponse.action</saml2:AttributeValue></saml2:Attribute><saml2:Attribute Name="logoutURL" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified"><saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">https://atul-sail-dev-ed.my.salesforce.com/services/auth/sp/saml2/logout</saml2:AttributeValue></saml2:Attribute></saml2:AttributeStatement></saml2:Assertion></saml2p:Response>
 

User-added image


But its Base64 encoded value is not working with request:

User-added image
Base64 saml assertion:

PD94bW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A6YXR0cm5hbWUtZm9ybWF0OnVuc3BlY2lmaWVkIj48c2FtbDI6QXR0cmlidXRlVmFsdWUgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeHNpOnR5cGU9InhzOnN0cmluZyI+aHR0cDovL3Nmc2FtbGFwcGdyYW50Lmhlcm9rdWFwcC5jb20vUmVxdWVzdFNhbWxSZXNwb25zZS5hY3Rpb248L3NhbWwyOkF0dHJpYnV0ZVZhbHVlPjwvc2FtbDI6QXR0cmlidXRlPjxzYW1sMjpBdHRyaWJ1dGUgTmFtZT0ibG9nb3V0VVJMIiBOYW1lRm9ybWF0PSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YXR0cm5hbWUtZm9ybWF0OnVuc3BlY2lmaWVkIj48c2FtbDI6QXR0cmlidXRlVmFsdWUgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeHNpOnR5cGU9InhzOnN0cmluZyI+aHR0cHM6Ly9hdHVsLXNhaWwtZGV2LWVkLm15LnNhbGVzZm9yY2UuY29tL3NlcnZpY2VzL2F1dGgvc3Avc2FtbDIvbG9nb3V0PC9zYW1sMjpBdHRyaWJ1dGVWYWx1ZT48L3NhbWwyOkF0dHJpYnV0ZT48L3NhbWwyOkF0dHJpYnV0ZVN0YXRlbWVudD48L3NhbWwyOkFzc2VydGlvbj48L3NhbWwycDpSZXNwb25zZT4=

 

Can someone please help me on this? how can I get the assertion working.

I am using Dataloader to import user.csv. I have 9K user records in user.csv. If I use dataloader to import these records does it import all these records with the same Id, ProfileId, UserRoleId or it will create diffrent uniqueId for these.

Example;
If I have user record with Id 0050H0000098J6MMAU, I am importing this user record in different tenant, does the user record will be created with same Id as in csv file?

Hi,

getting following Exception while fetching accounts  INVALID_OPERATION_WITH_EXPIRED_PASSWORD: The users password has expired, you must call SetPassword before attempting any other API operations

This makes me believe that the issue is that the password to the service account on the source has expired. However, customer insists the password was set to never expire, and we are able to successfully test connection. why this behavior??

I want to modify the chunk size of the result of the query. I have tried with adding the LIMIT but with this i cannot get the next chunk of the data.
I am using the salesforce stub to execute the query and if i use the LIMIT in the query the "isDone" parameter is true in the query result. I check the isDone parameter for getting next chunk using "queryMore" as below. 

public void queryRecords() {
02   QueryResult qResult = null;
03   try {
04      String soqlQuery = "SELECT FirstName, LastName FROM Contact";
05      qResult = connection.query(soqlQuery);
06      boolean done = false;
07      if (qResult.getSize() > 0) {
08         System.out.println("Logged-in user can see a total of "
09            + qResult.getSize() + " contact records.");
10         while (!done) {
11            SObject[] records = qResult.getRecords();
12            for (int i = 0; i < records.length; ++i) {
13               Contact con = (Contact) records[i];
14               String fName = con.getFirstName();
15               String lName = con.getLastName();
16               if (fName == null) {
17                  System.out.println("Contact " + (i + 1) + ": " + lName);
18               } else {
19                  System.out.println("Contact " + (i + 1) + ": " + fName
20                        + " " + lName);
21               }
22            }
23            if (qResult.isDone()) {
24               done = true;
25            } else {
26               qResult = connection.queryMore(qResult.getQueryLocator());
27            }
28         }
29      } else {
30         System.out.println("No records found.");
31      }
32      System.out.println("\nQuery succesfully executed.");
33   } catch (ConnectionException ce) {
34      ce.printStackTrace();
35   }
36}


I want to set the chunk cize to less than 2000, reason being, the data on the salesforce is huge and with default 2000 chunk size i get the few chunks of result and then i get the below error.

"QUERY_TIMEOUT: Your query request was running for too long"
If I want to change the UserLicense on the User Object how Can change it through SOAP API.
I am confused as I couldnt find the Userlicense directly assosciated with UserObject.
But from the front end I can see we can update the UserLicense on the User ?
Please provide some help
I am using following query but its giving me error

select Name, Label, Description, userLicense from PermissionSet
                                 ^
ERROR at Row:1:Column:34
No such column 'userLicense' on entity 'PermissionSet'

But from the documentaion I can see that userLicense is present on the permission set.
Can you please help
Hi Team,

Can you please let me know how I can update the isFrozen attribute using soap API ?
I want to understand the significance of Permission set ID ?
Do we need this field to update the existing permissionset or Name will be sufficient for that as PermissionSet Name itself a unique attribute.
Can you please help me to understand and answer below queries as well

query to create permissionset and query to update existing permissionset
Hello!
We are trying to implement SAML 2.0 assertion flow in c#.NET desktop application to allow user to login into Salesforce through his/her domain(Active Directory) credentials. To achieve this, we have done following things so far:

1. We have implemented Salesforce SSO (through ADFS 2.0 & SAML 2.0) and we are able to successfully login into salesforce from browser (Through Identity Provider(IdP) Initiated login approach). URL used in IdP initiated approach: https://adforsfsso.nifdc.com/adfs/ls/IdpInitiatedSignon.aspx?loginToRp=https://saml.salesforce.com

2. Now we are trying to implement SAML assertion flow (Reference URL: https://help.salesforce.com/articleView?id=remoteaccess_oauth_web_sso_flow.htm) to allow user to login into Salesforce within custom c#.NET desktop based application through Salesforce SSO implemented in above point #1 (through user's domain(Active Directory) credentials).

3. We have followed steps given in SAML Assertion flow implementation document (Reference URL: https://help.salesforce.com/articleView?id=remoteaccess_oauth_web_sso_flow.htm). 
    3.1 According to it, we need valid a Base-64 encoded, then URL encoded, SAML response that is normally used for web single sign-on. We have captured SAML response from Web SSO URL (https://adforsfsso.nifdc.com/adfs/ls/IdpInitiatedSignon.aspx?loginToRp=https://saml.salesforce.com) through fiddler. Below is Base64 decoded version SAML response we received from Web SSO URL:
        
        
<samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" ID="_a811a056-b137-4f3e-a2c3-621301effbb1" Version="2.0" IssueInstant="2017-07-06T09:47:21.243Z" Destination="https://login.salesforce.com?so=00D410000012bMN" Consent="urn:oasis:names:tc:SAML:2.0:consent:unspecified">
            <Issuer xmlns="urn:oasis:names:tc:SAML:2.0:assertion">http://ADforSFSSO.nifdc.com/adfs/services/trust</Issuer>
            <samlp:Status>
                <samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success" />
            </samlp:Status>
            <Assertion xmlns="urn:oasis:names:tc:SAML:2.0:assertion" ID="_d42ebb25-d1cb-4025-aad1-1fe282a9d30b" IssueInstant="2017-07-06T09:47:21.243Z" Version="2.0">
                <Issuer>http://ADforSFSSO.nifdc.com/adfs/services/trust</Issuer>
                <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
                    <ds:SignedInfo>
                        <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
                        <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
                        <ds:Reference URI="#_d42ebb25-d1cb-4025-aad1-1fe282a9d30b">
                            <ds:Transforms>
                                <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
                                <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
                            </ds:Transforms>
                            <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
                            <ds:DigestValue>gIcx+gPXCXxp30W9Fnc2mDvzbzo=</ds:DigestValue>
                        </ds:Reference>
                    </ds:SignedInfo>
                    <ds:SignatureValue>dKcaZRut8Ebmry3fqRPiRyFEl7hdu1ntBkKKemYIS6dfEsXpCHmvoiOQEGHO1ft/h/TlKC7kZ/8sIgS3DU/b54PU4fN2+n3l1f8US+k282LLjAdXN9KeNeUbVvSD3F290p7ThKg+l0zgActQYnt2lEPsiGHt3Gw8v0tUogXS/3bljP0jnRyzX1meQ68qjWEthGUr11QzMENQSsCr51Qpb7TzofxWYKghgd8wYd2JXAtr5QHaiVlSyZHmPJjyZ8k+30oK7SGP+/i9gytr87Gy89aO+PYoWatSd0fa7/YJZZGGN/2r7fwUH0+S/5ZSOsnBY9K1WeDx5Zt1yApYjKSD/Q==</ds:SignatureValue>
                    <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
                        <ds:X509Data>
                            <ds:X509Certificate>MIIC5DCCAcygAwIBAgIQYSbnq+iCZL5KzguC0ED3NDANBgkqhkiG9w0BAQsFADAuMSwwKgYDVQQDEyNBREZTIFNpZ25pbmcgLSBBRGZvclNGU1NPLm5pZmRjLmNvbTAeFw0xNzA2MTQxMzMwMzZaFw0xODA2MTQxMzMwMzZaMC4xLDAqBgNVBAMTI0FERlMgU2lnbmluZyAtIEFEZm9yU0ZTU08ubmlmZGMuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoX/zXfMlfetGNctUuyo+/77IHEEeg1Vdm9of2zrr+mgd4/O+4SOm1uoaAu3mlSrzgwJaRXdV3rEXi8CeChcl9a4jvddhy54NGzafSoWehp7vtURolhr83biR6XYYwXZw0dH55VV5CjyHEBsX3V7TAfRuxjzjie4xHhnpwNOioHdZ8sG/tw918rE314RfXkyJt4I5YSd9YB4d3eaKLePM7S0uSerm717PP/WcuZtv0SlZPUoRIItjx+a2+qqmmN5jU0UilSUrOd7tlGHYifG6L//b0Ffe+HnIcm5uY3tdMToLs7REkR2Rg3mC+JQ3IFJOPBYgtUCXYL1uwwJii131cQIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQBpMZNoppRIBi7YSc0DOEw+mLYQIK8PBnDmG3x1jVeEXYE0kxuPJ8C7QqfBgmZ2tPcfFrmtfl6CJlIhpU6U2gRXVyjc9pAkumz+XJ/v23y3TmFtlhS3ajwVSz/1Sp7nR314QEajgQvuCkusxJgM5HCVtM91Hue1q7s6qeUUQsynQ82HgiBXi9y6y5JaIzRexBjRD8iZViXgX0ezfIKdlHApPD1pepHeD4s/vtVl/9At4PXUj1rgK3IM4trP3qpIJeBgP+h5tZ4gK+JmL+n1G3fiL0IL+yjCQeuZWHHinDuI4qe8+goww3bzkOitk8KhAeprK5ziUaFGbO+UwrA/M+AQ</ds:X509Certificate>
                        </ds:X509Data>
                    </KeyInfo>
                </ds:Signature>
                <Subject>
                    <NameID>niadmin@nifdc.com</NameID>
                    <SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
                        <SubjectConfirmationData NotOnOrAfter="2017-07-06T09:52:21.243Z" Recipient="https://login.salesforce.com?so=00D410000012bMN" />
                    </SubjectConfirmation>
                </Subject>
                <Conditions NotBefore="2017-07-06T09:47:21.243Z" NotOnOrAfter="2017-07-06T10:47:21.243Z">
                    <AudienceRestriction>
                        <Audience>https://saml.salesforce.com</Audience>
                    </AudienceRestriction>
                </Conditions>
                <AuthnStatement AuthnInstant="2017-07-06T09:13:07.861Z" SessionIndex="_d42ebb25-d1cb-4025-aad1-1fe282a9d30b">
                    <AuthnContext>
                        <AuthnContextClassRef>urn:federation:authentication:windows</AuthnContextClassRef>
                    </AuthnContext>
                </AuthnStatement>
            </Assertion>
        </samlp:Response>

    3.2 We have checked above SAML response in "SAML Validator Tool" available in salesforce org under "Setup -> Single Sing-on settings". It is showing it as correct SAML response. Please find below screenshot of the same:
SAML Validator result of SAMLResponse received from Web SSO URL
    
    3.3 But when we POST Base64 encoded SAML response on OAuth 2.0 token end point (URL: https://login.salesforce.com/services/oauth2/token?so=00D410000012bMN), it is giving following error in json format:
{"error":"invalid_grant","error_uri":"https://na35.salesforce.com/setup/secur/SAMLValidationPage.apexp","error_description":"invalid assertion"}

We have used simple form for now to POST SAML Response. Below is the same:
<html>
<body>
	<form enctype="application/x-www-form-urlencoded" name="testform" action="https://login.salesforce.com/services/oauth2/token?so=00D410000012bMN" method="POST">
	<input type="hidden" name="grant_type" value="assertion" />
	<input type="hidden" name="assertion_type" value="urn:oasis:names:tc:SAML:2.0:profiles:SSO:browser" />
	<input type="hidden" name="format" value="json" />
	<input type="hidden" name="assertion" value="<<BASE64 ENCODED SAML RESPONSE >>" />
	<input type="submit" name="submit" value="Submit" />
</form>
</body>
</html>
Question / Help required:
1. Has anyone has any idea how to resolve this error? (invalid_grant
)
2. If you have any valid SAML response, please share.
We have a Salesforce Client that fetches user and other attributes from Slaesforce server, along with this we also want to fetch  "IsFrozen" attribute.
The IsFrozen attribute is present in UserLogin and can be fetched using below query "SELECT UserId, IsFrozen FROM UserLogin". 
But we already make a lot of calls to the Salesforce server where we get the API exceeding exception.
Hence is it possible to fetch IsFrozen attribute using below query.

Select Id  , Alias , City , CommunityNickname , CompanyName , CallCenterId , Country , Department , Email , Division , EmployeeNumber , Extension , Street , Fax , IsActive , Username , FirstName , LastName , EmailEncodingKey , Name , UserPermissionsMarketingUser , UserPermissionsMobileUser , UserPermissionsOfflineUser , UserPermissionsSFContentUser , Phone , ProfileId , Profile.Name , ReceivesAdminInfoEmails , UserRoleId , UserRole.Name , UserType , State , Title , ReceivesInfoEmails , Profile.UserLicense.Name , LanguageLocaleKey , LocaleSidKey , TimeZoneSidKey , FederationIdentifier , TESTKEY__c , Manager.Name , Profile.Id , UserRole.Id from user WHERE user.IsActive = true


 
We are using a 3rd party tool (DBAmp) to execute a QueryAll api call against the Task table and are receiving the QUERY_TIMEOUT error.  Salesforce directed me here when I asked for the query timeout to be increased to 10 minutes ..

I am trying to implement OAuth 2.0 Username-Password Flow and below is my code and debug log - any help is appreciated. [https://help.salesforce.com/help/doc/en/remoteaccess_oauth_username_password_flow.htm]

 

 

 

Http httpProtocol = new Http();   
HttpRequest request = new HttpRequest();
request.setHeader('Content-Type', 'application/json;');
request.setEndPoint('https://test.salesforce.com/services/oauth2/token');
request.setMethod('POST');
String strbody = '{"grant_type":"Password", "password":"MY PASSWORD + TOKEN", "username":"SANDBOX USER NAME",  "client_secret":"secret",   "client_id":"Client id from remote setttings"}';
request.setBody(strbody);
HttpResponse response = httpProtocol.send(request);
String jsonInput = response.getBody();
system.debug('jsonInput===>'+jsonInput);

 

Debug log - 

 

15:55:38.068 (68324000)|SYSTEM_METHOD_ENTRY|[5]|System.HttpRequest.setMethod(String)
15:55:38.068 (68346000)|SYSTEM_METHOD_EXIT|[5]|System.HttpRequest.setMethod(String)
15:55:38.068 (68350000)|STATEMENT_EXECUTE|[6]
15:55:38.068 (68356000)|HEAP_ALLOCATE|[6]|Bytes:357
15:55:38.068 (68381000)|VARIABLE_ASSIGNMENT|[6]|strbody|"{\"grant_type\":\"Passw (337 more) ..."
15:55:38.068 (68387000)|STATEMENT_EXECUTE|[7]
15:55:38.068 (68407000)|SYSTEM_METHOD_ENTRY|[7]|System.HttpRequest.setBody(String)
15:55:38.068 (68440000)|SYSTEM_METHOD_EXIT|[7]|System.HttpRequest.setBody(String)
15:55:38.068 (68445000)|STATEMENT_EXECUTE|[8]
15:55:38.068 (68478000)|SYSTEM_METHOD_ENTRY|[8]|System.Http.send(APEX_OBJECT)
15:55:38.068 (68568000)|CALLOUT_REQUEST|[8]|System.HttpRequest[Endpoint=https://test.salesforce.com/services/oauth2/token, Method=POST]
15:55:38.483 (483258000)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:219
15:55:38.483 (483399000)|CALLOUT_RESPONSE|[8]|System.HttpResponse[Status=Bad Request, StatusCode=400]
15:55:38.483 (483424000)|HEAP_ALLOCATE|[8]|Bytes:96
15:55:38.483 (483444000)|SYSTEM_METHOD_EXIT|[8]|System.Http.send(APEX_OBJECT)
15:55:38.483 (483615000)|VARIABLE_ASSIGNMENT|[8]|response|"System.HttpResponse[Status=Bad Request, StatusCode=400]"|0x1b22c3f1
15:55:38.483 (483627000)|STATEMENT_EXECUTE|[9]
15:55:38.483 (483666000)|SYSTEM_METHOD_ENTRY|[9]|System.HttpResponse.getBody()
15:55:38.483 (483742000)|HEAP_ALLOCATE|[9]|Bytes:81
15:55:38.483 (483751000)|SYSTEM_METHOD_EXIT|[9]|System.HttpResponse.getBody()
15:55:38.483 (483780000)|VARIABLE_ASSIGNMENT|[9]|jsonInput|"{\"error\":\"unsupporte (61 more) ..."
15:55:38.483 (483786000)|STATEMENT_EXECUTE|[10]
15:55:38.483 (483794000)|HEAP_ALLOCATE|[10]|Bytes:13
15:55:38.483 (483980000)|HEAP_ALLOCATE|[10]|Bytes:94
15:55:38.483 (483999000)|SYSTEM_METHOD_ENTRY|[10]|System.debug(ANY)
15:55:38.484 (484025000)|USER_DEBUG|[10]|DEBUG|jsonInput===>{"error":"unsupported_grant_type","error_description":"grant type not supported"}