No edit permission is related with the license or version of Office of the PC client ?

Touchsky2022 1 Reputation point
2022-08-21T08:36:11.627+00:00

I am trying to edit word file in browser by Office Online Server( 16.0.8471.8525 + kb4011025 in Windows Server 2012) + WOPI host, responsed with "No edit permission"

below is the ULC log information:
IsDocumentEditable: BaseDocument says editing is not supported [WebEditingEnabled: True] [SupportsEditing: False] [PinnedUsersRights: Read]
IsInteractiveViewEnabled: Default to collab is disabled.
Received request for a file with view only permission against a non default-to-collab host.
GetCells returning unsuccessful. [StatusCode: InteractiveViewDisabled] [IsOdtFile: False]

No edit permission is related with the license or version of Office of the PC client?
The PC client has installed the Office 2019 but has not registered.

Microsoft Office Online Server
Microsoft Office Online Server
Microsoft on-premises server product that runs Office Online. Previously known as Office Web Apps Server.
666 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Emi Zhang-MSFT 27,081 Reputation points Microsoft Vendor
    2022-08-22T08:21:52.417+00:00

    Hi,
    "No edit permission is related with the license or version of Office of the PC client?" Office client activation is not related to the edit permission for OOS.

    0 comments No comments

  2. Touchsky2022 1 Reputation point
    2022-08-22T11:58:21.383+00:00

    I have enabled the edit with following source in checkFileInfo

    -------------

    const info = {  
      BaseFileName: fileName,  
      OwnerId: userInfo().uid.toString(),  
      Size: fileStats.size,  
      UserId: 'gsyf.xxxxxx.com', //userInfo().username,  
      UserFriendlyName: userInfo().username,  
      Version: fileStats.ctimeMs.toString(),  
      SupportsUserInfo: false,  
      LastModifiedTime: new Date(fileStats.mtime).toISOString(),  
      BreadcrumbBrandName: 'LocalStorage WOPI Host',  
      BreadcrumbBrandUrl: WOPI_SERVER,  
      BreadcrumbFolderName: 'WopiStorage',  
      BreadcrumbFolderUrl: WOPI_SERVER,  
      BreadcrumbDocName: fileName,  
      // UserCanNotWriteRelative: true,  
      ClientUrl: filePath,  
      DownloadUrl:OFFICE_ONLINE_SERVER + "/wv/wordviewerframe.aspx?ui=zh-CN&rs=zh-CN&WOPISrc=" + safeFileId2 + "&access_token=" + access_token + "&access_token_ttl=0",   
      // for edit  
      SHA256: String(fileHash),  
      ReadOnly: false,     // edit enable  
      UserCanWrite: true,     // edit enable  
      WebEditingDisabled: false,     // edit enable  
      RestrictedWebViewOnly: false,     // edit enable  
      SupportsUpdate: true,     // edit enable  
      LicenseCheckForEditIsEnabled: true,  
      HostEditUrl: OFFICE_ONLINE_SERVER + "/we/wordeditorframe.aspx?ui=zh-CN&rs=zh-CN&WOPISrc=" + safeFileId2 + "&access_token=" + access_token + "&access_token_ttl=0",  
      HostViewUrl: OFFICE_ONLINE_SERVER + "/wv/wordviewerframe.aspx?ui=zh-CN&rs=zh-CN&WOPISrc=" + safeFileId2 + "&access_token=" + access_token + "&access_token_ttl=0",  
      SupportsLocks: true,     // edit enable  
      SupportsGetLock: true,  
      SupportsDeleteFile: false,  
      SupportsRename: false,  
      SupportsCobalt: true,     // edit enable  
      SupportsCoauth: false,     // edit enable  
      SupportsFolders: true,     // edit enable  
      SupportsScenarioLinks: false,     // edit enable  
      SupportsSecureStore: true,     // edit enable  
    }  
    

    ------------

    but, when request with following URL, the result of checkFileinfo is not same with source

    ------------------

    http://oos.xxxxx.com/oh/wopi/files/@/wFileId?wFileId=http%3A%2F%2Fgsyf%2Exxxxx%2Ecom%3A28088%2Fweb-app-wopi%2F320481%2F202201%2Fdefault%2Fdefault%2Fdefault%2Fdefault%2F%2F4-%25E5%259B%259E%25E8%25AE%25BF-20-%25E5%259B%259E%25E8%25AE%25BF%25E6%258A%25A5%25E5%2591%258A%25E7%25AD%25BE%25E6%2594%25B6%25E5%258D%2595%2Edocx%3Faccess_token%3DREDACTED_63&access_token_ttl=0

    ------------------

    {
    "AADUserObjectId": "",
    "AllowAdditionalMicrosoftServices": false,
    "AllowEarlyFeatures": false,
    "AllowErrorReportPrompt": false,
    "AllowExternalMarketplace": false,
    "AppCatalogUrl": "",
    "BaseFileName": "4-鍥炶-20-鍥炶鎶ュ憡绛炬敹鍗�.docx",
    "BreadcrumbBrandName": "",
    "BreadcrumbBrandUrl": "",
    "BreadcrumbDocName": "4-鍥炶-20-鍥炶鎶ュ憡绛炬敹鍗�.docx",
    "BreadcrumbFolderName": "",
    "BreadcrumbFolderUrl": "",
    "ClientUrl": "",
    "CloseButtonClosesWindow": false,
    "ClosePostMessage": false,
    "CloseUrl": "",
    "DirectInvokeDAVUrl": "",
    "DisableBrowserCachingOfUserContent": false,
    "DisablePrint": false,
    "DisableTranslation": false,
    "DownloadUrl": "http://gsyf.xxxxxx.com:28088/web-app-wopi/320481/202201/default/default/default/default//4-%E5%9B%9E%E8%AE%BF-20-%E5%9B%9E%E8%AE%BF%E6%8A%A5%E5%91%8A%E7%AD%BE%E6%94%B6%E5%8D%95.docx?access_token=REDACTED_63",
    "EditAndReplyUrl": "",
    "EditModePostMessage": false,
    "EditNotificationPostMessage": false,
    "EditingCannotSave": false,
    "EmbeddingPageOrigin": "",
    "EmbeddingPageSessionInfo": "",
    "FileEmbedCommandPostMessage": false,
    "FileEmbedCommandUrl": "",
    "FileExtension": "",
    "FileNameMaxLength": 0,
    "FileSharingPostMessage": false,
    "FileSharingUrl": null,
    "FileUrl": "",
    "FileVersionPostMessage": false,
    "FileVersionUrl": "",
    "HostAuthenticationId": "",
    "HostAuthenticationIdType": "",
    "HostDivSyndicationViewUrl": "",
    "HostEditUrl": "",
    "HostEmbeddedEditUrl": "",
    "HostEmbeddedViewUrl": "http://oos.xxxxxx.com/op/embed.aspx?src=http%3A%2F%2Fgsyf%xxxxxx%2Ecom%3A28088%2Fweb%2Dapp%2Dwopi%2F320481%2F202201%2Fdefault%2Fdefault%2Fdefault%2Fdefault%2F%2F4%2D%25E5%259B%259E%25E8%25AE%25BF%2D20%2D%25E5%259B%259E%25E8%25AE%25BF%25E6%258A%25A5%25E5%2591%258A%25E7%25AD%25BE%25E6%2594%25B6%25E5%258D%2595%2Edocx%3Faccess%5Ftoken%3DREDACTED%5F63",
    "HostName": "OpenFromUrl",
    "HostNotes": "",
    "HostRestUrl": "",
    "HostViewUrl": "http://oos.xxxxxx.com/op/view.aspx?src=http%3A%2F%2Fgsyf%xxxxxx%2Ecom%3A28088%2Fweb%2Dapp%2Dwopi%2F320481%2F202201%2Fdefault%2Fdefault%2Fdefault%2Fdefault%2F%2F4%2D%25E5%259B%259E%25E8%25AE%25BF%2D20%2D%25E5%259B%259E%25E8%25AE%25BF%25E6%258A%25A5%25E5%2591%258A%25E7%25AD%25BE%25E6%2594%25B6%25E5%258D%2595%2Edocx%3Faccess%5Ftoken%3DREDACTED%5F63",
    "InsertImagePostMessage": false,
    "IrmPolicyDescription": "",
    "IrmPolicyTitle": "",
    "IsAnonymousUser": false,
    "IsEduUser": false,
    "IsYammerEnabled": false,
    "LastModifiedTime": "",
    "LicenseCheckForEditIsEnabled": false,
    "LicensedOrganization": "",
    "OfficeCollaborationServiceEndpointUrl": "",
    "OpenInClientCommandUrl": "",
    "OpenInClientPostMessage": false,
    "OwnerId": "gsyf.xxxxxx.com",
    "PolicyCheckPostMessage": false,
    "PostMessageOrigin": "",
    "PresenceProvider": "",
    "PresenceUserId": "",
    "PrivacyUrl": "",
    "ProtectInClient": false,
    "ReadOnly": false,
    "ReportAbusePostMessage": false,
    "ReportAbuseUrl": "",
    "RestrictedWebViewOnly": false,
    "SHA256": "Eo9jbeLK67AXDEFzR99B830wdK8EYF3pLj8NqjbvsEw=",
    "SignInUrl": null,
    "SignoutUrl": null,
    "Size": 2801,
    "SupportedShareUrlTypes": [],
    "SupportsAddActivities": false,
    "SupportsCheckPolicy": false,
    "SupportsCoauth": false,
    "SupportsCobalt": false,
    "SupportsContainers": false,
    "SupportsDeleteFile": false,
    "SupportsEcosystem": false,
    "SupportsExtendedLockLength": false,
    "SupportsFileCreation": false,
    "SupportsFolders": false,
    "SupportsGetActivities": false,
    "SupportsGetLock": false,
    "SupportsLocks": false,
    "SupportsRename": false,
    "SupportsScenarioLinks": false,
    "SupportsSecureStore": false,
    "SupportsUpdate": false,
    "SupportsUserAccess": false,
    "SupportsUserInfo": false,
    "TenantId": "",
    "TermsOfUseUrl": "",
    "TimeZone": "",
    "UniqueContentId": "",
    "UserCanAttend": false,
    "UserCanNotWriteRelative": false,
    "UserCanPresent": false,
    "UserCanRename": false,
    "UserCanWrite": false,
    "UserFriendlyName": "",
    "UserId": "",
    "UserInfo": "",
    "UserPrincipalName": "",
    "Version": "128f636de2caebb0170c417347df41f37d3074af04605de92e3f0daa36efb04c",
    "WebEditingDisabled": false,
    "WorkflowPostMessage": false,
    "WorkflowType": [],
    "WorkflowUrl": ""
    }

    ------------------

    anybody can give some help?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.