Issue when saving files to the Spotfire library due to insufficient permissions or privileges. (Error message is "You do not have sufficient privileges for this action.")

Issue when saving files to the Spotfire library due to insufficient permissions or privileges. (Error message is "You do not have sufficient privileges for this action.")

book

Article ID: KB0079865

calendar_today

Updated On:

Products Versions
Spotfire Analyst All Versions

Description

Description:
Spotfire user licenses and library folder permissions determine where a file can be saved and by whom. To publish (save to the library) a Spotfire analysis that contains a script or custom query, the user must have Script Author or Custom Query Author rights granted. 
 
(The "Custom Query Author" group is a new Spotfire user group that was added in Spotfire 6.5 related to data connections.)

Symptoms:

When a user with only Spotfire Administrator or Library Administrator permissions attempts to save a Spotfire analysis that contains a script or custom query to the Spotfire library, this action will trigger the following stack trace:

Error message: Could not publish Test_Data_Report.


LibraryException at Spotfire.Dxp.Framework:
You do not have sufficient privileges for this action. (HRESULT: 80131500)

Stack Trace:
   at Spotfire.Dxp.Framework.Library.InternalLibraryManager.StartServiceRequest(String operation, RequestStartExecuter executer)
   at Spotfire.Dxp.Framework.Library.InternalLibraryManager.<>c__DisplayClass37.<Save>b__33()
   at Spotfire.Dxp.Framework.ApplicationModel.Progress.ExecuteSubtask(String title, ProgressOperation operation)
   at Spotfire.Dxp.Framework.Library.InternalLibraryManager.Save(LibraryEntry entry, Action`1 streamWriter, Fields fields)
   at Spotfire.Dxp.Application.AnalysisApplication.SaveAs(LibraryEntry entry, Document document, LibraryItemMetadataSettings metadataSettings, DocumentSaveSettings saveSettings)
   at Spotfire.Dxp.Forms.Application.FileUserActions.<>c__DisplayClass4.<SaveAsLibrary>b__2()
   at Spotfire.Dxp.Forms.Application.FormsProgressService.ProgressThread.DoOperationLoop()


LibraryServiceException at Spotfire.Dxp.Services:
You do not have sufficient privileges for this action. (HRESULT: 80131509)

Stack Trace:
   at Spotfire.Dxp.Services.WebServiceBase`1.InvokeService[T](ServiceMethod`1 serviceMethod, ExceptionFactoryMethod exceptionFactoryMethod)
   at Spotfire.Dxp.Framework.Library.InternalLibraryManager.<>c__DisplayClass37.<Save>b__35()
   at Spotfire.Dxp.Framework.Library.InternalLibraryManager.StartServiceRequest(String operation, RequestStartExecuter executer)


Cause:
The Spotfire error message states that the user does not have sufficient privileges. The Spotfire analysis contains an untrusted script or a custom query, so the user's Spotfire username needs to be granted permissions that allow saving such an analysis (DXP file) to the Spotfire library, for this action to be allowed.

Issue/Introduction

Issue when saving files to the Spotfire library due to insufficient permissions or privileges. (Error message is "You do not have sufficient privileges for this action.")

Resolution

There are two resolution steps for this issue. Either one or both can be used to resolve the issue depending upon what the analysis contains (script or custom query) .

Resolution 1:
In order to save a new file containing a script, the user must have permission to :

- Write to the folder.
- Have a license to add new files.
- Have script admin group access. 


Add the group or user to the "Script Author" group. This is not enabled for administrators by default. Refer to the attached screenshot (Filename: Script_Author_Group.JPG).

Resolution 2:
In order to save a new file containing a custom query, the user must have permission to:

- Write to the folder.
- Have a license to add new files.
- Need to be member of "Customer Query Author" group.


Add the group or user to the "Customer Query Author" group. Refer to the attached screenshot (Filename: Custom_Query_Author_Group.JPG).

Additional Information

For folder permissions: https://docs.tibco.com/pub/spotfire/6.5.0/doc/html/lib/lib_editing_folder_permissions.htm

For license information: https://docs.tibco.com/pub/spotfire/6.5.0/doc/html/other/other_description_of_the_licenses.htm

Attachments

Issue when saving files to the Spotfire library due to insufficient permissions or privileges. (Error message is "You do not have sufficient privileges for this action.") get_app
Issue when saving files to the Spotfire library due to insufficient permissions or privileges. (Error message is "You do not have sufficient privileges for this action.") get_app