Skip to content

BasePermissions.to_json() issue? #959

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dksdarkness opened this issue May 6, 2025 · 0 comments
Open

BasePermissions.to_json() issue? #959

dksdarkness opened this issue May 6, 2025 · 0 comments
Labels

Comments

@dksdarkness
Copy link

Hi there! πŸ‘‹

First of all, thank you for this great library β€” it's been very helpful!

While migrating roles from one SharePoint site to another, I encountered some unexpected behavior. Upon investigating, I noticed the following method in base_permissions.py:

https://github.com/vgrem/Office365-REST-Python-Client/blob/master/office365/sharepoint/permissions/base_permissions.py:

def to_json(self, json_format=None): return {"Low": str(self.High), "High": str(self.Low)}

Shouldn't it be the other way around?:

{"Low": str(self.Low), "High": str(self.High)}

Best Regards!

@vgrem vgrem added the question label May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants