API Permissions required to use Send-RDMMessageByShareableLink

API Permissions required to use Send-RDMMessageByShareableLink

1 vote

avatar

What are the minimum API permissions required to be able to use this cmdlet?

Sidenote, for all cmdlets, as does MS for GraphAPI, documentation should list the API/User permissions required for them...

All Comments (3)

avatar

Hello,

Thank you for reaching out to Devolutions Support.

On a Devolutions Cloud workspace, Send-RDMMessageByShareableLink cannot be used with an application identity, whatever permissions it has. The shareable link is created on behalf of a user, so the cmdlet needs a workspace signed in with a user account. With an application identity, the cmdlet stops with a "No email" error.

I have moved your forum post to the PowerShell Feature Request section, where the team that maintains the module reviews requests: https://forum.devolutions.net/topics/57346/api-permissions-required-to-use-sendrdmmessagebyshareablelink

I understand your point that each cmdlet's documentation should list the permissions it requires. That topic is the right place for it, as well as for support of application identities with this cmdlet.

Please let me know if you have any questions.

Best regards,

Jacob Lafrenière

avatar

Great, thanks!

For permissions documentation, check out what's on the MS learn pages, like this one for /user.  Maybe split the section into "human" and "API"?  I'd also put whatever prerequisites are required.  I was trying to use Connect-DCAccount as that is what seems logical but apparently it would need New-RDMDataSource instead.

avatar

Hi Pascal,

Thank you for this feedback. We know our PowerShell documentation needs work, and we are actively looking at ways to improve it. Adding the required user and API permissions to each cmdlet, as Microsoft does for Graph, is a valuable suggestion, and it will help guide that effort. At this time, we cannot provide an estimate of when these improvements will be available

Best regards,

Maxime