web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Delete Attachments for...
Power Pages
Unanswered

Delete Attachments for Non Authenticated Users

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

 

Thanks for reading the post.

 

How to provide the delete an attachment for the Anonymous / Non-Authenticated users? End customer is attaching some files without login into the system. And, maybe mistakenly they have included the wrong file and now they want to delete the attachment.

 

Do you guys have any suggestion about how to achieve this? Thanks.

 

@OliverRodrigues  @hardikv @justinburch @OOlashyn @ragavanrajan 

Categories:
I have the same question (0)
  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at
    Could you pls confirm is it happening on Entity form or web form ?
  • oliver.rodrigues Profile Picture
    9,471 Most Valuable Professional on at

    Hi

     

    In your entity form/web form metadata you already have a record with notes configuration, you can simply add the delete option: https://docs.microsoft.com/en-us/powerapps/maker/portals/configure-notes

     

    you should already have an entity permission for the annotation entity, just make sure you enable Delete privilege as well 

     

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

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • justinburch Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

    I would recommend against this and explore other options. As the user is unauthenticated, you won't be able to put the controls to say "only if X created it can X delete it." As such, you'll have a website where any anonymous person can delete anyone's files.

     

    Consider using deactivate instead. This can appear as a delete to the anonymous user without exposing too much risk.

     

    If you absolutely need to, then the others have already provided the steps needed.

    I hope this helps,

    Justin

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks @OliverRodrigues for the reply.

     

    The steps which you're suggesting can only work for the Authenticated User/Login user. For the Anonymous user, delete button itself is not appearing. 

     

    If I browse the page with login credentials then I can see the button but if I browse the same page without login then delete button is not available.

     

    Reference from: https://docs.microsoft.com/en-us/powerapps/maker/portals/configure-notes#delete-dialog-options 

    D365Portal-Delete-Anonymous.JPG

     

    Does it make sense? or shall I elaborate more? Thanks.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks @ragavanrajan for the reply. 

     

    Its happening for both Entity form & Web form. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks @justinburch for the reply.

     

    Could you explain more about the 'deactivate'? I mean how to implement it? 

    Btw, that delete button is not available for the Anonymous User, as far as I tested its only available for the logged in user. 

     

    Thanks.

  • oliver.rodrigues Profile Picture
    9,471 Most Valuable Professional on at

    you are totally right (that might be something new), just tested myself here, and can't delete with anonymous user, in fact if I add a note as anonymous, the logged in user can't delete that specific note as well

     

    not sure, but you might have to go extreme DEV to achieve that, you can use the CRUD API (currently in preview) to add a custom button and delete the annotation: https://readyxrm.blog/2020/07/31/test-driving-the-power-apps-portals-webapi/

     

    I am playing with a few other options here to see if I can bypass that validation (I still agree with Justin's point of view, that can be a dangerous requirement)

  • oliver.rodrigues Profile Picture
    9,471 Most Valuable Professional on at

    yeah @Anonymous I was just playing here, but I guess you have no other option other then going for CRUD API

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks @OliverRodrigues for the update. We're looking to deploy solution within next couple of weeks so can't use CRUD Api as General Availability is next year, else your suggestion for CRUD api is what we have to use.

     

    I also looked into the option for the Deactivate but unable to find any viable solution. If you know anything would you like to share? Thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 55

#2
11manish Profile Picture

11manish 48

#3
Valantis Profile Picture

Valantis 46

Last 30 days Overall leaderboard