{{BrightspaceDomain}}/d2l/api/lp/{{lpversion}}/attributes/users/
/d2l/api/lp/1.42/attributes/users/143002
With IdKey authenticaion, this api returns Fordidden
Is there any configuration causing this issue?
So to have the user Attributes you require to have Manager Dashboard enabled and this is not a core product it is a paid for additional product. The Attributes themselves would normally be configured by a D2L Integration consultant when the product is installed as far as I am aware. I would suggest you check if you have the Manager Dashboard product or contact your D2L CSM or if your Institution has a TAM contact them.
If you take a look at the documentation for that API call, a "403 Forbidden" status code means that the caller does not have permission to view user attributes. Are you making this request from a browser that you have an active Brightspace session?
I have tried this tool
https://apitesttool.desire2learnvalence.com/index.php?x_a=1zzQYPR1hR49hGwCTPwCAc&x_b=-NivbEqpvbOiTLZHiaJMRm&x_c=7--Sp8j3TplnOQVPjvQjbKvP4AuYz8oDlW7HFMamIpo
the major question is how to configure the permission to view user attributes.
As per the comment above can you check permission and authentication as I tried it with the api test tool and had no issues.
The Brightspace user on behalf of whom the API call is made (the calling user context) must have permissions to see the user attributes for the user identified in the API call. Typically if the user context's user can do some functionality in the Brightspace UI, then API calls made on their behalf providing equivalent functionality should be allowed. You should ensure that user context's user can see user attributes for another user in the Brightspace UI; if their enrollment role doesn't give them sufficient privileges to do so, then they shouldn't be abllowed to do this via the APIs either.
Thanks for your reply, I have done some research. User Attributes permission needs to be configured by Manager Dashboard or Learning Groups Organization on the navbar. But I cannot find Manager Dashboard on the navbar
https://devcop.brightspace.com/d2l/lp/navbars/6606/navbar/Edit/209?isCopySetActive=0
I logged in as DevCoP Admin
Ok so I think then that the main issue here is that the User attributes are not setup and configured on that DevCop test site, which is why you are getting the 403 error. Do you have access to your institution site that has the attributes setup and configured, if so I would suggest trying the command against that site.
Right now I have a super administrator access to my client instituion, but still has no access to user attributes. Could you give me the detailed instruction on how to configure it.
Connect with our Known and Fixed Issue information to learn about improvements made to Brightspace.
Connect with leaders in pedagogy, accessibility, learning experience design and more
The Accessibility category serves as a single point of access to three avenues in Brightspace Community leading to the Accessibility Academy, Accessibility Library and Accessibility Discussions. These avenues offer courses and articles about accessibility to enhance accessibility knowledge and a group of accessibility enthusiasts to stay connected with.
Have questions about how to use Community? Stay tuned with updates, feedback opportunities and more for the Community here!
Connect with and ask questions on how to best use the Brightspace Product to transform the way your users learn!
Connect with product experts to learn more about tools frequently used by Brightspace Developers such as APIs and integrations!
Want to learn more about Brightspace Partners and Integrations? This is the place to be!
Stay up to date with product updates and announcements in this category.
Connect with our release information to learn about monthly improvements and updates to Brightspace.
Learn more about all the upskilling opportunities with courses and resources offered via the Brightspace Learning Center, Brightspace Guided Training and other training opportunities!