Windows Impersonation with Redemption - impersonation

I want to access pst stored on the other machine where i don't have any rights.I am trying LogOnPstStore() for the same under the identity of that machine/user
using Windows Impersonation. but getting the error MAPI_E_NOT_ENOUGH_RESOURCES.
I have also created the seperate exe for the same and called it with CreateProcessWithLogonW() but at that time i am getting following error :
Could not find the newly added PST service
at Redemption.IRDOSession.LogonPstStore(String Path, Object Format, Object DisplayName, Object Password, Object Encryption)
Can you help me ?Is It Possible ?

Firstly, MAPI and impersonation do not play well with each other. Secondly, and more importantly, Microsoft does not support PST files on network drives.

Related

Email Attachments to SharePoint Document Library - Error

I have this weird problem when I try to use a simple default flow template to save email attachments to the company main SharePoint site: company.sharepoint.com (not subsite).
So I get started, by taking all the defaults of this flow, however, once i get to the point of providing the site address and document library path I get the error highlighted in red.
Where I get confused is that when I create a subsite like company.sharepoint.com/sites/testsite I enter the subsite address and the folder path automatically populates the folder structure for me to pick where I want to save such attachment.
I have given full owner permission to this test account with same results. So permission is not the problem.
My question is, could it be I'm using the wrong flow to save to a main SharePoint site? or this is something not allowed?
You could check the connector and recreate a new connection to SharePoint.
In many cases, an error code of 403 appears in a flow fail because of an authentication error. If you have this type of error, you can usually fix an authentication error by updating the connection, please make sure you have update the connection.
You could refer to this article.
Just in case anyone has a similar problem, the account to which you are creating a power automate flow must be a site collector to the root SharePoint site.

How can I create a msg(outlook) blob in azure storage using a workflow

I am trying to create .msg file from shared mailbox using Azure Logic app. But logic app returns json , not able to create .msg file from it.
Firstly, is MSG format a requirement? If you want just something you can open in Outlook, create an EML (MIME) file - Outlook will be happy to open it even EML won't be able to store all custom or Outlook specific properties. EML file format is text based, so it is easy to create in your code.
If you still need MSG format, your options are
Extended MAPI (C++ or Delphi, Outlook must be installed for the MAPI system to be present) - see StgOpenStorage / StgCreateStorageEx / OpenIMsgOnIStg functions on MSDN.
Create MSG file explicitly in your code - its format is documented, but it is as binary as it gets.
Third party libraries (such as Aspose) - your mileage may vary.
Extended MAPI wrapper like Redemption (I am its author) - you can create an instance of the RDOSession object and call RDOSession.CreateMessageFromMsgFile, populate the RDOMail object properties, and call RDOMail.Save.
After reproducing from our end, Here is one of the workarounds that worked for us. After mentioning the blob name along with its extension (.msg), we could able to get it to work.
Below is my Logic App Screenshot
RESULTS:
In storage account
After downloading it to local

is type=service-account affected by September 13, 2021 security update?

I recently received this email from google:
Hello Google Drive Developer,
We have identified you as a Developer who has used the Drive API in the last 30 days. We are writing to let you know that on September 13, 2021, Drive will apply a security update that will change the links used to share some files, and may lead to some new file access requests. Access to files won’t change for people who have already viewed or modified these files.
Please update your code as detailed below before September 13, 2021, to avoid failing requests.
What do I need to know?
Items that have a Drive API permission with type=domain or type=anyone, where withLink=true (v2) or allowFileDiscovery=false (v3), will be affected by this security update.
In addition to the item ID, your application may now also need a resource key to access these items.
When I look at https://developers.google.com/drive/api/v3/manage-sharing, the types are listed as: (user, group, domain, or anyone) .
I'm using type=service-account for my shared google drive API access (no domain delegation enabled); which of those 4 types would 'service-account' fall under?
Or is the type=service-account not affected by this security update?

custom reports rsProcessingaborted error

I have deployed CRM and installed the reporting extensions component successfully on the SSRS server with rollup2 (server and router match this) - I have separate servers for CRM , SQL and SSRS. The out the box reports work ok but the custom reports present an error "rsProcessingAborted" which to me sounds like permissions. I have read a number of articles relating to pepople with the same issue and have tried all possible fixes but still no joy.
SSRS runs under a svc_sqlserver acccount and this account has permissions in the DB
the datasources have all been created successfully and the custom reports are using the MSCRM_FetchDataSource which is configured with type Dynamics CRM Fetch and credentials supplied by the user running the report. The connection string says CustomerServicesCE which is the correct OrgsanisationID (as found within developer resources) - i have tried clearing this connection string, adding the server url, all possible combinations with no joy.
Within SSRS i cannot view the report, it says "cannot access the CRM datasource" - i read somewhere you need to enter the GUIDs systemuserid and organisationid as username and pwd but still no joy.
I tried amending one report to use the samedatasource as the out the box reports that work but still no joy which is the MSCRM_DataSource...................am i missing something?
These reports have come from another supplier - i don't mind how they are displayed (Fetch or otherwise) i just need them working!
interestingly i do get them working on my Development environment (after getting the same error) and to my eyes the setup looks identical!
thanks for any help
richard
the answer was to create an spn as
setspn -a http/crmservername domain\accountCRMrunsunderrIIS

Getting logged user id in Cruise Control .Net

I am trying to get the userid of the user that has triggered the build and use it as a parameter some where in the build file. Just like we can use ${CCNetProject} to get the project name. Is there a way I can get this information in Cruise Control .Net?
You can access the user via environment variable CCNetUser. Find more information here.

Resources