Is there a valence API which can be used to get the list of locale IDs from D2L site. I am using the API to create course which requires an input of LocaleID and I am trying to build some logic which can transform the locale stored in my system to that of D2L system.
Unfortunately, there is not currently a Valence API to retrieve the list of locale IDs together with locale names and other meta-data. Additionally, it's possible that only a user with the permissions to use the Locale Management admin tool will be able to provide you with the locale IDs that you'll want to use in your calls.
The admin user can go into the Locale Management tool to view the list of locales, click on one to select/edit it, and then, look in the query URL to see what the value of the id parameter is: this should be the locale ID.
Related
My rails API application allows a user to make POST API requests to create a credential through a namespaced endpoint (i.e. ~/api/v1/credentials). I'm working now to allow the creation of a credential through the HTML view (~/credential/new), but for business reasons, we need a specific parameter for credentials created through the HTML view that isn't necessarily required through the API.
For example, let's say the parameter in question is cell_number. An API user may not need to provide a cell number, but every user who creates a credential with the HTML view must provide one.
Since both the API and the HTML version rely on the same model, how would one go about doing validations for different criteria through the API vs the HTML version? Or am I over complicating this and should look at another option entirely?
I'm using the Microsoft Graph API within a PowerShell script to automate the creation of Microsoft Teams teams. I am obtaining email addresses from a database of a proprietary non-Microsoft application that does not contain the Microsoft User Id. The Microsoft User ID is needed in order to add members to the Teams.
I am using the Microsoft Graph URI:
graph.microsoft.com/v1.0/users/
to obtain the User Id.
Unfortunately, that database sometimes contains an email alias rather than the user's primary email address. When the script attempts to obtain the person's User Id using an alias, the Graph API call returns an error.
For example, when the primary email is address is "jsmith#abc.com", but the database contains his alias "joe#abc.com" I was expecting to be able to call that API with a filter such as:
graph.microsoft.com/v1.0/users?$filter=alias eq 'joe#abc.com'
but I can find no such filter option.
I would appreciate any tips on how to solve this problem.
The user object has a property called otherMails. This is a multi-value property.
The filter syntax is different for multi-value-properties.
To filter users by alias, you'll need to use:
https://graph.microsoft.com/v1.0/users?$filter=otherMails/any(c:c eq 'joe#abc.com')
We are creating a custom dynamic sap Fiori/SAPUI5 application tile in our launchpad. It seems like you just need to put the odata service call with a $count for the dynamic tile to show list of pending items. For example
/MyListSet/$count
will output 100 pending items
But what if we want to check if the user has authorization to items in the list? I'm considering putting something like
/MyListSet('USER')/$count
but this doesn't seem to be possible as the USER is unknown until runtime.
Is there a way to get the logged user calling the OData service and pass this user to our OData call via RFC and filter the result from there?
The user should already be authenticated with the system if he sees your app/launchpad.
I would suggest that you use the sy-uname system variable and filter your entityset before responding to frontend.
This should not be implemented in SAPUI5 instead use the ABAP Gateway service.
What is the REST call to list all the project roles of a user.
I could get the groups by using:
http://XXX/rest/api/2/user?username=XXX&expand=groups.
I want the project role results by sending username but not project name.
This is not available yet I guess. But It would be helpful if you could post your JIRA-Version anyway.
Only think that might be of interest for you is here: Taken from JIRA 6.1 docs. But you have to define the permissions in this request.
https://developer.atlassian.com/static/rest/jira/6.1.html
/rest/api/2/user/permission/search?username&permissions&issueKey&projectKey&startAt&maxResults
Returns a list of active users that match the search string and have all specified permissions for the project or issue.
This resource can be accessed by users with ADMINISTER_PROJECT permission for the project or global ADMIN or SYSADMIN rights.
The project key is optional for this call.
If this won't help you:
You can extend the rest API with your own plugin.
Within "Manage External Learning Tools" D2L provides the ability to define custom LTI parameters. I created such a parameter, and I now want to assign a dynamic value to the customer parameter via JavaScript prior to posting the request to the 3rd party provider.
For example, the user_id LTI parameter is assigned the D2L-only user ID value which does not align with the campus-wide authentication. However, it is possible to get the campus-wide user ID via JavaScript, and I would like to assign this to a custom LTI parameter like custom_campus_user_id.
Thank you in advance.
If you go to External Learning Tools at the org, and go into Settings (v10) or Configure Tool Consumer Information (v9.2 – v9.4.1), there are three checkboxes for allowing the D2L defined user fields to be passed in an LTI link as custom parameters. It appears it is system username that contains the value you are looking for.