Can we add public group to unmanaged/managed package? - salesforce

I have created a public group to give access on report folder. Now i created unmanaged package and added all the components but not able to add public group to the package.
Thanks.

Public groups and queues can't be packaged. You'll have to write some install steps / release notes to admins that install the app, suggesting how they can configure the security.
List of packageable items is in https://resources.docs.salesforce.com/226/latest/en-us/sfdc/pdf/salesforce_packaging_guide.pdf pages 24-32 or
https://developer.salesforce.com/docs/atlas.en-us.packagingGuide.meta/packagingGuide/packaging_packageable_components.htm
https://developer.salesforce.com/docs/atlas.en-us.packagingGuide.meta/packagingGuide/packaging_unmanaged_components.htm

Related

Sharing reports between users in salesforce

An user has created few reports in salesforce and he has been removed(deactivated) from salesforce .So now i want to share his reports to some other user in salesforce.How can i do this. could someone help??
The default save location for custom reports is "My Personal Custom Reports." That is a private folder that only the authoring user can access. To share reports, they need to be saved to a public folder.
In your scenario (assuming these reports are in the private folder), first create a public report folder, then login as the user (you will need to reactivate them first), and go into their "My Personal Custom Reports" folder. For each report you want to share, you'll need to open it and choose the "Save as" option, then select the public folder as the destination. A new copy of the report will then be available to anyone with access to that folder.
If the reports are already in a public folder, you simply need to give other users permissions to that folder.

Missing Composite C1 CMS Packages option

Picked up an existing project built on Composite C1 version 4.3, and I'm trying to install a package. All the information online says to go to System -> Packages -> Install Local Package, but I don't even see a Packages option on the System page at all.
I've tried to see if this option was disabled or not available in this version, but nothing definitive so far.
EDIT:
I do have direct access to code, so if there's a config file I could edit it directly, but haven't found anything that indicates where this might be.
It looks like the account that you are logging in with isn't the main admin account. It's probably a developer account to which the admin has added the ability to make backups and tweak Google Analytics settings. You'll need to contact the admin and ask them to give you full privileges, in order to install packages yourself.
If you have FTP access to the website, there is a way to move an account from one group to another:
Open: ~/App_Data/Composite/DataStores/Composite.Data.Types.IUser.xml
Find the user account for the user you want to change group membership for, and make a note of the Id GUID value.
Open: ~/App_Data/Composite/DataStores/Composite.Data.Types.IUserGroup.xml
Find the group you want that account to have membership of (ie: Administrator or Admin), and make a note of the Id GUID value.
Open: ~/App_Data/Composite/DataStores/Composite.Data.Types.IUserUserGroupRelation.xml
Make a backup copy of this file, just in case it doesn't work!
In the origional, find UserId GUID matching your account Id, then ammend the UserGroupId to the group Id. Save the file.
I've tried this out on my local copy of C1 and it appears to work. You should now have access to everything the admin has access to.
i downloaded the old version of C1 4.3 from github and started a new site, and looks like something is wrong with your site, because this version have package manager.
Something error on Log's Folder? (no Console Log item found in your capture)
I tested on this version (see the image uploaded), so, wich especific version have you?
The two files I needed to change were IUserActivePerspective, and IUserGroupActivePerspective. The perspectives for what I was missing were removed from the admin account, so I just needed to add them back there.

salesforce: packaging the app with custom profile

I add custom profile in the package, however, I can't create the custom profile by installing. After more investigating, if I created the custom profile before the installation the package can update the fls and permissions. There is no way creating custom profile on installation? If so can I do that with installation script?
Took me a while to figure it out but here's the solution:
IN YOUR DE ORG:
Clone Standard Platform User profile (because is the one that has the Salesforce Platform license) and name it something meaningful like MyApp_Profile
Customize MyApp_Profile to match your desired access level for the users that will test or use your app
Add custom profile settings MyApp_Profile to the package
Go ahead an finish the package
IN THE TEST_ORG (OR YOUR_CUSTOMER_ORG):
Pre-create a profile by cloning the Standard Platform User profile and name it something meaningful like MyApp_TestProfile
Assign MyApp_TestProfile to a user
Install the package and on Step 2 (Choose security level) of the wizard you have to select the third option (Select security settings)
Under "Customize security" section make sure the MyApp_TestProfile (created on step 5) has the MyApp_Profile assigned (created on step 1)
Finish the Package installation
Log to the test or customer org with the user that has the MyApp_TestProfile assigned and choose your App from top right menu.
You're welcome!
I hope this solves your issue too!

Salesforce Metadata API Deployment Not pushing System Permissions

How do you get the System Permissions to be pulled?
I am working on building a Metadata deployment for our company, and part of the deployment includes creating several new profiles. We are trying to capture all of the permissions for these profiles, but can't seem to get the system permissions to match in our test runs.
I know that when you retrieve the profile object, what you get is dynamic, based on what other object you are retrieving. (see Chap 4 bullet 2)
The Following System Permissions are different between our source and destination environment
Customize Application
Manage Connections
Manage Custom Report Types
Manage Dashboards
Manage Public Documents
Manage Public List Views
Manage Public Reports
Manage Public Templates
Manage Translation
Manage Users
Modify All Data
Reset User Passwords and Unlock Users
+ Send Email
Transfer Record
View All Data
note: + indicates added in the destination. All others are lost.
In order to use the Metadata API - the user must have the "API Enabled" and the "Modify All Data" permissions.

Attached files rights for Drupal

on my website i have two types of files that end users can download - one of them are available for all visitors, and second is only for registered users (users that are logged in).
setting of drupal allows to set only if files are available for all users or only for users that are logged in.
how can i achieve that some files are public and some not?
thank you in advance!
Assumption: you're using Drupal 6.
If you're using the upload module to attach files to your nodes: consider using http://drupal.org/project/private_upload
If you don't mind creating manual links to the files in your Node bodies (and uploading the files yourself to the private folder) consider http://drupal.org/project/private_download
If you're using filefields consider using http://drupal.org/project/filefield_private
Some up these modules have hardly an uptake (click on the usage statistics link on each of the above links I've shared with you).
Unfortunately mixing private and public downloads is a known area of weakness for Drupal 6. Drupal 7 has fixed this.

Resources