Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

Batch job history log button security permissions for a custom role

(0) ShareShare
ReportReport
Posted on by 1,424

Hi Community!

I am facing an issue while configuring a security permission for Log button on Batch job history form for a custom role. The requirement is user with custom role should be able to view Log messages for any batch ended in error. 

System administration > Inquiries > Batch jobs > Batch job history

Clicking Log button runs a form method element.showLog() which gets data from BatchHistory and BatchJobHistory tables.

BatchJobHistory::showLog(batchJobHistory.RecId)

I have configured security privileged like below which is added to duty then role then to user.

7180.Permissions.png

User with custom role can see the Log button but when clicks the button, it doesn't show any of the error messages for failed batches. Any thoughts what I am missing here?

Batch-job-history-form.png

  • Sohaib Cheema Profile Picture
    Sohaib Cheema 46,610 User Group Leader on at
    RE: Batch job history log button security permissions for a custom role

    I want to comment on this line "And system doesn't show any log for successful batches even with sysadmin role."

    It can be possible that in the configuration of the batch job, notifications of info type have been disabled. For every batch job you can enable/disable the three types of the notifications i.e. Errors, Warnings, Info 

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,642 Super User 2024 Season 2 on at
    RE: Batch job history log button security permissions for a custom role

    Hi Muhammad,

    Does the user still have the System user role assigned? Initially, I would think the privilege is setup correctly with form, table and button access. The additional table permissions might not be required as there is already access to them via the form permissions, but is OK.

  • M Anas Khan Profile Picture
    M Anas Khan 1,424 on at
    RE: Batch job history log button security permissions for a custom role

    We can see the log for failed batches with sysadmin role but not with custom role. And system doesn't show any log for successful batches even with sysadmin role. So I guess this is standard, haven't checked the technical details though.

  • Sohaib Cheema Profile Picture
    Sohaib Cheema 46,610 User Group Leader on at
    RE: Batch job history log button security permissions for a custom role

    Does it shows info message for passed(Status: Ended) batch job history records.?

    Secondly, can you please check if the batch job has configuration to save logs on Error ?  

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans